I have broken my Visual Studio set up. What should I do to fix it?

Joe Babb 60 Reputation points
2024-07-01T12:19:30.1966667+00:00

I installed Visual Studio Community edition a few months ago along with .NET MAUI and WinForms workloads. Everything was going smoothly until I decided I wanted to add WinUI3 workload. I thought I selected that properly, but after downloading that and installing, I find that my .NET MAUI will no longer compile my programs I had been working on, and in WinForms I no longer have any tools in my toolbox for using in the Form Designer. I don't understand what I did wrong, but I'd like to get back to where I was. Do I have to reinstall everything all over again?

Joe

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,050 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,246 Reputation points Microsoft Vendor
    2024-07-02T06:58:04.48+00:00

    Hi @Joe Babb ,

    Maybe try a repair first. VS Installer => More => Repair(this may take some time).

    Also, try to reset VS settings by running devenv /ResetSettings in Developer Command Prompt for Visual Studio.

    Besides, uninstalling and reinstalling the "Windows application development" workload maybe work.

    If all above don’t work, kindly try to reinstall VS.

    Feel free to let us know the results.

    Best Regards,

    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.

    0 comments No comments

  2. Joe Babb 60 Reputation points
    2024-07-04T11:41:56.89+00:00

    I seem to have fixed the problem with .NET MAUI and WinForms by selecting those in VS installer and downloading them again. So it SEEMS like if I want to add A workload, I need to select all the ones I want not just the one I want to add. Is this correct or am I missing something?

    Joe


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.