Condividi tramite


Errore NuGet 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.

Problema

Il progetto passato a msbuild -t:pack non contiene un file di asset valido nella directory obj.

Soluzione

Eseguire msbuild -t:restore -p:restoreforce=true l'operazione sul progetto in pacchetto prima di eseguire l'operazione pack.