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?
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:
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