title: Why are C# references added differently between NuGet and Visual Studio
body: <p>We use NuGet (NuGet Version: 3.5.0.1996) two different ways.  Either we run it from the command line or we use the NuGet Package Manager in Visual Studio (2015).</p>
  
  <p>The problem is that these two ways add references to the .csproj file with different formats.  If we use the command line, we get a reference that looks like this:</p>
  
  <pre><code>&lt;Reference Include="Dummy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"&gt;
    &lt;HintPath&gt;..\packages\Dummy.1.27.10\lib\net452\Dummy.dll&lt;/HintPath&gt;
    &lt;Private&gt;True&lt;/Private&gt;
  &lt;/Reference&gt;
  </code></pre>
  
  <p>If we use the NuGet Package Manager in Visual Studio, we get a reference that looks like this:</p>
  
  <pre><code>&lt;Reference Include="Dummy, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"&gt;
    &lt;HintPath&gt;..\packages\Dummy.1.27.10\lib\net452\Dummy.dll&lt;/HintPath&gt;
    &lt;Private&gt;True&lt;/Private&gt;
  &lt;/Reference&gt;
  </code></pre>
  
  <p>Notice that ones adds the reference with the PublicKeyToken attribute and the other adds it with the processorArchitecture attribute.</p>
  
  <p>This causes issues with our source control with frequent (and unnecessary) updates and merges.</p>
  
  <p>It would be nice to know why this happens, but I would much rather have a way to prevent it from happening.  Any suggestions?</p>