The target process exited without raising CoreCLR started event error with .NET Core 2.2

michasaucer picture michasaucer · Apr 19, 2019 · Viewed 34.8k times · Source

I want to debug empty WebApi Project based on .NET Core 2.2.

I installed Core 2.2 SDK x86 and changed target framework to 2.2:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.2</TargetFramework>
  </PropertyGroup>

When i starting to debug this project, IIS starts, but in route api/values i see nothing (it loading forever) and i get this error:

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

In my solution WPF and Class Library projects exist. I wanted to make WebApi for it. Like i said, its empty base project genereted by Visual Studio 2019. I just installed Core 2.2 why i get that error and what im doing wrong?

enter image description here

Answer

Quymbee picture Quymbee · Jun 19, 2019

I was facing the same issue!

I updated my Visual Studios to the most recent via the VS Installer.
While updating, I also added the following VS Workloads:

  • ASP.NET and web development
  • .NET desktop development

See about workloads here:
https://github.com/MicrosoftDocs/visualstudio-docs/blob/master/docs/install/modify-visual-studio.md

This worked for me! 😊

I did not have to downgrade or remove anything