Assets file '<path>\project.assets.json' not found. Run a NuGet package restore to generate this file.
or
C:\Program Files\dotnet\sdk\2.1.504\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(198, 5): error NETSDK1004: 找不到资产文件 project.assets.json
Solution:
Use cmd cd in .net core project files Run dotnet build
Similar Posts:
- VS Net Core Project Exception Resolution – project.assets.json’ not found. Run a NuGet package restore to generate this…
- Vs publish error: NETSDK1152: multiple publishing output files with the same relative path were found
- This project references NuGet package(s) that are missing on this computer. Enable NuGet Package …
- VScode Add Startup Project Files Error: Could not execute because the application was not found or a compatible .NET SDK is not installed
- [Solved] Windows SDK Fails to Install with Return Code 5100
- [Solved] Microsoft.CSharp.Core.targets(84,5): error MSB6006: “csc.exe” Exited with code -1066598274
- How to Solve SQL Server: database stuck in “restoring” state
- Running NETCORE 2.2 program error [How to Fix]
- How to Solve .NET 6 running on win7 SP1 error
- After project initialization, it appears: unable to load script from assets’ index.android.bundle