I recently successfully switched all of our projects over to automatic NuGet restore. To do this I followed this guide. Everything worked great, I was able to delete my /packages
folder and restore to my heart's content.
One of the steps in that guide says to edit your .csproj
file and remove the EnsureNuGetPackageBuildImports
related element.
The problem I am having now is that, after going in and downgrading one of my projects libraries, NuGet seems to have automatically added the EnsureNuGetPackageBuildImports
related element back into my .csproj
file.
Is there some other setting I should be changing to prevent NuGet from doing this? I would rather not have to edit my .csproj
file every time I make a NuGet related change.