Reputation: 2791
One of our underlying projects is packaged via NuGet and distributed (internally) so that other teams can consume the library - let's call it "Core." With NuGet 1.x, we got a reference in our .csproj file that looked something like this:
<Reference Include="Core">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Core.1.4.1.381\lib\net40\Core.dll</HintPath>
After upgrading to NuGet 2.0, this same reference looks like this:
<Reference Include="Core, Version=1.4.1.381, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Core.1.4.1.381\lib\net40\Core.dll</HintPath>
In the Include
attribute, does the Version matter? I'm explicitly setting SpecificVersion
to false. I've looked through the MSBuild Project File Schema Reference, but it didn't see anything regarding how this attribute is parsed.
Thanks for input on this.
-SethO
Upvotes: 0
Views: 495
Reputation: 234
I tried under VS2010, if you specify :
<SpecificVersion>False</SpecificVersion>
the version under <Reference></Reference>
is ignored.
Upvotes: 1