Visual studio compiler error

Yura Yarotskyi 0 Reputation points
2024-07-07T20:45:55.3733333+00:00

have this problem: I can't run the code, it says:

The "ResolveAppHosts" task was not given a value for the required parameter "RuntimeGraphPath".

I don't know what I can do, please help me

.NET version 6.0, C#

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,842 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.
10,597 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
965 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 29,181 Reputation points Microsoft Vendor
    2024-07-08T07:48:32.31+00:00

    Hello @Yura Yarotskyi ,

    Welcome to Microsoft Q&A forum.

    I suggest you first run VS as administrator, see if this error disappears. If the error persists, try to repair VS(VS Installer > More > Repair).

    If you installed some extensions, try to temporarily disable/uninstall them and test again. Some extensions may interfere VS.

    From looking at the error message, it seems that the issue is related to .NET/SDK.

    If you try to install and use .NET 8(Installers|Windows|x64), will this error disappear?

    Sincerely,

    Tianyu


    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.