I got the below error when trying to start a newly scaffolded web app.
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
This isn’t a very helpful error but if you run
dotnet run on the command line you get some more details which shows that a more recent version of .NET Core is required to run the app.
It seems the scaffolded projects were updated to use a newer version of .NET Core than I had installed but the Visual Studio installer didn’t include the relevant version of .NET Core in the update process.