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
nuget.exe pack doesn't add transitive dependencies thus as a result packages created with dotnet pack and nuget.exe pack are inconsistent.
Not providing detailed repro steps as the NuGet/NuGet.Client#4025 has not been merged yet. It seems that when transitive dependency pinning was implemented originally, support for centralTransitiveDependencyGroups was added to PackTask/dotnet/msbuild but NuGet.exe was missed.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered:
See description Not providing detailed repro steps as the NuGet/NuGet.Client#4025 has not been merged yet
HI @erdembayar, NuGet/NuGet.Client#4025 is just implementing option to enable a feature called "transitive dependency pinning". But the feature itself was in fact implemented in the past and then was disabled with this PR: NuGet/NuGet.Client#3719.
So it is true that the issue with nuget.exe that I'm reporting here is not yet reproducible, but it will be as soon as NuGet/NuGet.Client#4025 is merged.
I think this issue can be closed. I've just found out, that according to documentation nuget.exe is not supposed to support SDK-style projects, so there is also no reason to expect that it is going to support central transitive dependencies (See https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package):
For non-SDK-style projects, typically .NET Framework projects, follow the steps described in this article to create a package. For step-by-step instructions using Visual Studio and the nuget.exe CLI, see [Create and publish a .NET Framework package (https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio-net-framework).
NuGet Product Used
NuGet.exe
Product Version
dev branch
Worked before?
no
Impact
Other
Repro Steps & Context
dotnet pack
adds transitive dependencies (when transitive dependency pinning is enabled) to the dependency groups in the nuspec of the created package (see https://github.com/NuGet/NuGet.Client/blob/b76bf48337114102098d31c80271589feb0d28eb/src/NuGet.Core/NuGet.Build.Tasks.Pack/PackTaskLogic.cs#L922-L932).nuget.exe pack
doesn't add transitive dependencies thus as a result packages created withdotnet pack
andnuget.exe pack
are inconsistent.Not providing detailed repro steps as the NuGet/NuGet.Client#4025 has not been merged yet. It seems that when transitive dependency pinning was implemented originally, support for
centralTransitiveDependencyGroups
was added toPackTask/dotnet/msbuild
but NuGet.exe was missed.Verbose Logs
No response
The text was updated successfully, but these errors were encountered: