Open
Description
Description
Running dotnet applications will fail with
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.
For specific configurations.
Reproduction Steps
- Create a new ConsoleApplication (.NET) and select .NET6 as target framework.
- Set the Output type to WinExe
- Set the TargetOS to Windows
- Set the TargetOS version Version to 10.0.22000.0
- Set UseCommonOutputDirectory to true
- Set GenerateRuntimeConfigDevFile to true
- Set OutputPath to any path.
- Delete all "obj" and build(debug/release) folders under your Project folder <- This is important
- Clean & rebuild the Project
- Try to start the ConsoleApplication (With the debugger, so you get the error message)
(Example .csproj file)
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UseCommonOutputDirectory>true</UseCommonOutputDirectory>
<GenerateRuntimeConfigDevFile>true</GenerateRuntimeConfigDevFile>
<OutputPath>$(SolutionDir)Build\$(Configuration)\</OutputPath>
</PropertyGroup>
Expected behavior
Application starts
Actual behavior
Process terminates with error message: 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.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response