-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSBuild --no-restore cli argument is not available despite a DoRestore option #2226
Comments
You can set it as a MSBuild param. Thats the way I use it |
Can you give an example? I'm not seeing a way in the source... |
I think this particular edge case is a bit of a pain. But I don't think you can use |
By the way current way to do this is to use the |
Thanks! I used
|
Description
Using the
DotNet.build
orDotNet.build
it is not possible to pass through the--no-restore
flag, despite theMSBuild.CliArguments
type having aDoRestore
member.Repro steps
Create a build target like so:
Expected behavior
The build process would not do a restore before building.
Actual behavior
The build process does a restore.
Known workarounds
None that I am aware of.
Related information
The text was updated successfully, but these errors were encountered: