You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit test1.csproj and change version to 1.0.2, then build and repack it
go back to test2 folder and update the version to 1.0.1
In test2 folder do dotnet restore then dotnet pack
Extract the test2.1.0.1.nupkg
View the .nuspec file
Expected behavior
Dependency should be listed as: <dependency id="test1" version="1.0.2" exclude="Build,Analyzers" /> so that any nuget package built against the test2 library auto-restore test1 to 1.0.2
This is impacting us heavily right now as any time we build a nuget package it has outdated dependencies, which when restored on other projects causes FileLoadExceptions due to dotnet restore restoring an older dll.
Environment data
dotnet --info output:
.NET Command Line Tools (1.0.1)
Product Information:
Version: 1.0.1
Commit SHA-1 hash: 005db40cd1
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /usr/share/dotnet/sdk/1.0.1
The text was updated successfully, but these errors were encountered:
Steps to reproduce
mkdir test1
mkdir test2
cd test1
dotnet new classlib
<VersionPrefix>1.0.1</VersionPrefix>
dotnet restore
thendotnet pack
cd ../test2
dotnet new classlib
vim Class1.cs
public class Class1 : test1.Class1
<VersionPrefix>1.0.0</VersionPrefix>
dotnet restore
thendotnet pack
1.0.2
, then build and repack ittest2
folder and update the version to1.0.1
dotnet restore
thendotnet pack
.nuspec
fileExpected behavior
Dependency should be listed as:
<dependency id="test1" version="1.0.2" exclude="Build,Analyzers" />
so that any nuget package built against thetest2
library auto-restore test1 to1.0.2
Actual behavior
Dependency is outdated and listed as
<dependency id="test1" version="1.0.1" exclude="Build,Analyzers" />
This is impacting us heavily right now as any time we build a nuget package it has outdated dependencies, which when restored on other projects causes
FileLoadExceptions
due todotnet restore
restoring an older dll.Environment data
dotnet --info
output:The text was updated successfully, but these errors were encountered: