Why does NuGet Package Manager remove SpecificVersion False from a project file

When I update the NuGet package, the link to which I installed

<SpecificVersion>False</SpecificVersion> 

it removes this line from the project file (csproj).

What is the reason for this behavior and is there a way to control or circumvent this?

+7
c # visual-studio-2012 nuget nuget-package
source share
1 answer

This is how NuGet is being implemented now. I do not know about a workaround. You may have to write a PowerShell script to fix links that were changed during the upgrade.

Updating the NuGet package will remove the old version and install a new version, which will remove the link and add it again. The new link has default values ​​for the new link, so the old values ​​are not remembered.

Support for MonoDevelop and Xamarin Studio has explicitly added support for the Local Copy value for the link, but not for the Specific Version property.

+3
source share

All Articles