After updating the visual studio, the project no longer runs properly. Even if I reinstall it, it won't work. How can I solve it? I need a senior to help. Thank you.

志毓 石 0 Reputation points
2023-11-16T05:32:03.5566667+00:00

After updating the visual studio, the project no longer runs properly. Even if I reinstall it, it won't work. How can I solve it? I need a senior to help. Thank you.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,794 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,125 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 20,656 Reputation points Microsoft Vendor
    2023-11-16T12:46:52.4866667+00:00

    Hi @志毓 石, 

    Welcome to Microsoft Q&A! 

    Are you using VS2022? Do you have any error messages or warnings? 

    Please create a new project and check that it works properly. 

    You can try the following workarounds:

    1. Open Visual Studio Installer > More > Repair the VS.
    2. Run “devenv /ResetSettings” at Developer Command Prompt to restore your Visual Studio default settings.
    3. Close VS and manually delete the hidden .vs folder in the project folder.
    4. If you have anti-virus software, please temporarily disable it.
    5. Please check your System environment variables if there are two paths to dotnet.

    C:\Program Files\dotnet

    C:\Porgram Files (x86)\dotnet 

    If you can find them, please click on the Move up button to move the entry C:\Program Files\dotnet before the x86 one.

    Or delete this one: C:\Porgram Files (x86)\dotnet. 

    Sincerely,

    Anna


    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.

     

    0 comments No comments