Set
Set

Reputation: 49779

How to disable automatic .NET Core package restore?

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

Answers (1)

Nate Barbettini
Nate Barbettini

Reputation: 53610

It's possible to turn off transient package restore in the Package Manager Settings section of the Visual Studio options window:

Uncheck "Allow Nuget to download missing packages"

Unchecking Allow Nuget to download missing packages will stop Visual Studio from restoring packages when you edit project.json.

Upvotes: 5

Related Questions