How to disable nuget package restore with msbuild command line options?
msbuild, nuget, visual-studio
Solution
You can use "MSBuild /p:RestorePackages=false" to disable package restore on build command.
Problem
I want to disable NuGet package restore on build and use the individual command for that. Is this possible? My idea is to use something like this: ``` nuget.exe restore msbuild.exe /p:NuGetRestorePackages=false ``` Update: - the package updating can be disabled by `MSBuild.exe ... /p:RestorePackages=false` - and it looks like `.nuget\nuget.exe restore solution.sln` restores the packages