NuGet / Home

Repo for NuGet Client issues
Other
1.49k stars 252 forks source link

NuGet package install and assembly version in csproj files #3218

Open vphad opened 8 years ago

vphad commented 8 years ago

Hi Team, We are using NuGet in our projects, we are facing issues with the csproj references of the NuGet packages.

Scenario 1 When we are installing few packages to the solution on Dev system with below details,

It adds the specific version to the csproj files. as given below, (csproj snippet),

`

..\packages\ABCD.XYZ.2.0.0.0\lib\net45\ABCD.XYZ.dll True

`

Scenario 2 When adding the same package on build server with below details

It adds below details,

`

..\packages\ABCD.XYZ.2.0.0.0\lib\net45\ABCD.XYZ.dll
  <Private>True</Private>
</Reference>

`

How is the specific version is added ? On stackoverflow, I see post is mentioning that it adds below tag to the csproj for that user, but that's not the case for us.

<SpecificVersion>False</SpecificVersion>

1. How is this specific version or strong name is added to the csproj ? 2. Is there any option to add/ignore specific version ? 3. What is required to add the reference as highlighted in Scenario 2 ?

Please let us know if additional data is required.

vphad commented 8 years ago

Can someone please look into this ? It's affecting our builds.

sheitmann commented 8 years ago

I have the same issue with a specific package. The hint path is always updated but the version in the include attribute is sometimes wrong. Not sure if it helps to identify the source for the issue but I have other packages that have this problematic package as dependency with an older version.

prorok-kane commented 7 years ago

Any updates about this issue?