Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The
packcommand for SDK-style projects is not supported, usedotnet packormsbuild -t:packto pack this project instead. You can override this behavior by setting the 'NUGET_ENABLE_LEGACY_CSPROJ_PACK' environment variable to 'true'.
Issue
NuGet.exe pack should not be used to generate packages for SDK-style projects.
Solution
Use dotnet pack or msbuild -t:pack instead.
It recommended that you do not use the legacy csproj pack experience as it generates incomplete packages.