Errore 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.
Problema
NuGet.exe pack per i progetti di project.json non è supportato.
Soluzione
Eseguire invece la migrazione del progetto a PackageReference e usare le destinazioni pack.
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per