Freigeben über


NuGet-Fehler NU5025

The assets file found does not contain a valid package spec. Try restoring the project again. The location of the assets file is F:\project\obj\project.assets.json.

Abgang

Das an msbuild -t:pack übergebene Projekt enthält keine gültige Asset-Datei im obj-Verzeichnis.

Lösung

Bitte führen Sie die msbuild -t:restore -p:restoreforce=true-Operation für das zu packende Projekt aus, bevor Sie die Paket-Operation ausführen.