NuGet 错误 NU5049
The `pack` command for SDK-style projects is not supported, use `dotnet pack` or `msbuild -t:pack` to pack this project instead. You can override this behavior by setting the 'NUGET_ENABLE_LEGACY_CSPROJ_PACK' environment variable to 'true'.
问题
NuGet.exe pack 不应用于为 SDK 式项目生成包。
解决方案
请改用 dotnet pack
或 msbuild -t:pack
。
建议在生成非完整包时不使用旧的 csproj 打包体验。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈