.NET CLI Error Messages
The dotnet command for building and running .NET apps.All .NET CLI pages
- dotnet run: Couldn't find a project to rundotnet run says Couldn't find a project to run when the current folder has no .csproj file. cd into the project folder, or point at it with --project.
- error NETSDK1004: Assets file 'project.assets.json' not found. Run a NuGet package restoreNETSDK1004 means dotnet build ran with --no-restore, or restore never ran, so obj/project.assets.json is missing. Run dotnet restore first or drop --no-restore.
- error NETSDK1045: The current .NET SDK does not support targeting .NET XNETSDK1045 means the project's TargetFramework is newer than the installed .NET SDK supports. Install a newer SDK, fix global.json, or lower TargetFramework.
- MSB1011: Specify which project or solution file to use because this folder contains more than one projectdotnet build fails with MSB1011 when the folder holds several .csproj or .sln files. Pass the one you want, such as dotnet build App.csproj, or move the extra.