Reputation: 49779
By default, if you edit dependencies in project.json, Visual Studio starts package restore automatically. Is it possible to disable this behavior?
I am playing with dotnet restore
arguments, and for testing purposes I'm editing project.json
/removing project.lock.json
. But VS automatically runs default "dotnet restore" after any changes, which is interrupting my testing.
Upvotes: 4
Views: 2284
Reputation: 53610
It's possible to turn off transient package restore in the Package Manager Settings section of the Visual Studio options window:
Unchecking Allow Nuget to download missing packages will stop Visual Studio from restoring packages when you edit project.json.
Upvotes: 5