NuGet update from command line removes attributes from .csproj references

Topics: General
Feb 25, 2014 at 12:21 PM
Edited Feb 25, 2014 at 12:22 PM

I'm using Nuget.exe 2.8.0 to update a package from command line.
Nuget updates the package but removes attributes from .csproj references

NuGet.exe update C:\EDDI\dotnet\MyProd\trunk\MyProd.sln -Id MyProd.Common -ConfigFile C:\EDDI\dotnet\MyProd.Common.CodeGeneration\trunk\CodeGeneration.nuget\NuGet.config

 <Reference Include="MyProd.Common, Version=, Culture=neutral, PublicKeyToken=87dca562359a030a, processorArchitecture=MSIL">
 <Reference Include="MyProd.Common">
Version, Cultue, PublicKeyToken and processorArchitecture were removed from the reference in the csporj file.

From Visual Studio the update works fine.

How can I keep the reference with its attributes?
Apr 9, 2014 at 5:43 PM
When you update a package thru nuget.exe, when adding a reference, NuGet does not use fully qualified assembly name, which is why PublicKeyToken etc is missing. If you think fully qualified assembly name should be used when the assembly is strong-named, please create an issue.