Assets file project.assets.json not found. Run a NuGet package restore

后端 未结 30 960
孤城傲影
孤城傲影 2020-11-28 20:02

I\'m trying to use nopCommerce(Which is written in .NET Core) but when I want to run the project I face 52 Errors telling me Run a nuget package restore

30条回答
  •  囚心锁ツ
    2020-11-28 20:57

    To those with the same issue as me in Azure DevOps / VSTS environment encountering a similar message: C:\Program Files\dotnet\sdk\2.2.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(208,5): Error NETSDK1004: Assets file '...\obj\project.assets.json' not found. Run a NuGet package restore to generate this file

    Add /t:Restore to your MSBuild Arguments in Build Solution.

提交回复
热议问题