NuGet 错误 NU5042
`project.json` pack is disabled in the current NuGet version, and will be permanently removed in a future version. Please consider migrating 'MyProject' to `PackageReference` and using the pack targets. You can set the 'NUGET_ENABLE_LEGACY_PROJECT_JSON_PACK' environment variable to 'true' to temporarily reenable this functionality.
问题
不支持针对 project.json 项目的 NuGet.exe pack。
解决方案
将项目迁移到 PackageReference,并改用 pack 目标。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈