How to fix error code 2147516556 (0x8000808c) in VS 2022

Manfred Koh 0 Reputation points
2024-07-24T02:12:43.5233333+00:00

Reference Library uses .NET 8.0, which I configured it as such.

Build is successful but Debugger shows below error and program failed to open.

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. 
The program '[Redacted]' has exited with code 2147516556 (0x8000808c).

Attached Image are installed Runtimes & SDKs.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,911 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,005 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jiachen Li-MSFT 32,056 Reputation points Microsoft Vendor
    2024-07-24T03:20:08.6466667+00:00

    Hi @Manfred Koh ,

    Ensure that your project is configured to use .NET 8.0.

    Open the csproj file (.) and check the target framework <TargetFramework>net8.0</TargetFramework>.

    Confirm that the platform (x86, x64, or ARM) and architecture (Debug or Release) settings match between your project and the target process.

    Make sure all dependencies and NuGet packages are correctly installed, clean the solution and rebuild it.

    Best Regards.

    Jiachen Li


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.