add new Components to the installed VS Pro 2022

PerserPolis-1732 1,351 Reputation points
2023-11-29T14:06:57.3233333+00:00

Hi,

I have installed VS Pro 2022 on my machine successfully- But I need to add some new components to my VS Pro 2022.

I have the complete installation files on network share.

The following components should be added

  • Microsoft.VisualStudio.Component.DotNetModelBuilder

connected the to share where the installation files of VS 2022 and run the following command line

.\vs_Professional.exe modify --installpath "C:\Program Files\Microsoft Visual Studio\2022\Professional\2022" --add Microsoft.VisualStudio.Component.DotNetModelBuilder

What is here wrong? How can I add these components without internet access?

Regards

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,627 questions
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.
971 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,801 Reputation points Microsoft Vendor
    2023-11-30T06:22:49.3833333+00:00

    Hi @PerserPolis-1732 ,

    Welcome to Microsoft Q&A!

    Please try the following command line:

    .\vs_Professional.exe modify --installPath "C:\Program Files\Microsoft Visual Studio\2022\Professional" --add Microsoft.VisualStudio.Component.DotNetModelBuilder --add Microsoft.ComponentGroup.Blend --add Microsoft.ComponentGroup.ClickOnce.Publish

    If it doesn't work, please try it again:

    "C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" modify --installPath "C:\Program Files\Microsoft Visual Studio\2022\Professional" --add Microsoft.VisualStudio.Component.DotNetModelBuilder --add Microsoft.ComponentGroup.Blend --add Microsoft.ComponentGroup.ClickOnce.Publish --passive

    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