NuGet update from command line removes attributes from .csproj references

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

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

Command:
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

Before:
 <Reference Include="MyProd.Common, Version=1.1.0.12377, Culture=neutral, PublicKeyToken=87dca562359a030a, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\packages\MyProd.Common.1.1.0.12377\lib\net35\MyProd.Common.dll</HintPath>
    </Reference>
After:
 <Reference Include="MyProd.Common">
      <HintPath>..\packages\MyProd.Common.1.2.0.12377-SNAPSHOT\lib\net35\MyProd.Common.dll</HintPath>
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 6: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.