Visual Studio 2022 Community Project not load solution

Jefferson Carvalho 15 Reputation points
2023-03-07T22:46:11.71+00:00

User's image

My project dont load, any error is showing

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,614 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Jefferson Carvalho 15 Reputation points
    2023-03-09T19:32:07.7866667+00:00

    Managed to solve the problem by doing the same thing as in the link below, apparently the order of the windows environment variables that was preventing the .NET sdk from working correctly, since even by command line it will not be possible to create applications using .NET

    https://github.com/dotnet/core/issues/5962#issuecomment-780084535

    Thank you for your help!

    2 people found this answer helpful.

  2. Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
    2023-03-08T08:06:42.5966667+00:00

    Hello @Jefferson Carvalho ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    I see the small window on the bottom of left side in the screenshot, can you confirm that the message there means that VS is still loading the ConsoleApp1 project?

    Please first try to reboot your machine and directly start VS and open your project, to avoid the impact from other extensions/applications. Another way to confirm this is starting VS under safe mode(run devenv /SafeMode command in Developer Command Prompt for VS 2022 Community).

    Please also try to create a new folder and save it to root like C:\New Folder. Copy the whole ConsoleApp1 folder which includes ConsoleApp1 folder, ConsoleApp1.sln file and a hidden .vs folder(maybe .vs doesn’t exist) to this new folder. Right-click the .sln file and choose Open With, select Visual Studio 2022 Community, and check if the project can be successfully loaded.

    If the same issue persists, please then try following methods to narrow down this issue:

    1. Open VS Installer > More > Repair.
    2. Open Developer Command Prompt for VS 2022 Community > type and run devenv /ResetSettings.
    3. Right-click VS 2022 and run it as administrator.
    4. Try to remove the hidden .vs folder and reopen your project/solution.
    5. If you are using any antivirus, please try to disable it temporarily and test again.
    6. In case the issue is caused by different language in VS, would you mind trying to install the English Pack from VS Installer > Modify > Language packs and open VS, click Tools > Options > Environment > International Settings, change the language to English to confirm it?
    7. Create a new project in VS 2022 and check if the same issue appears again.

    If you changed something, for example path/location of VS, please let us know.

    Please feel free to let us know if you can successfully load the project this time.

    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.