installing visual studio 2022 with command line

mathew butterfield 41 Reputation points
2024-01-10T11:45:06.73+00:00

Hi there I am trying to install visual studio 2022 with the command line I have used vs_community.exe --add Microsoft.VisualStudio.Workload.CoreEvsditor --quiet which install just the core editor and now would like to install the workload data

I have used vs_community.exe --modify --add Microsoft.VisualStudio.Workload.Data --quiet but did not work what am I doing wrong.

Thank you

Mathew

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,091 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 30,896 Reputation points Microsoft Vendor
    2024-01-11T03:44:13.8066667+00:00

    Hi @mathew butterfield

    Welcome to Microsoft Q&A! 

    Please try the following command line:

    vs_community.exe modify --installPath "C:\Program Files\Microsoft Visual Studio\2022\Community" --add Microsoft.VisualStudio.Workload.Data --passive 

    It is noted that all running Visual Studio must be closed before running the command above. 

    In no-internet environment, please first download the workload into the layout folder:

    vs_community.exe --layout c:\localVSlayout --add Microsoft.VisualStudio.Workload.Data --includeRecommended --lang en-US 

    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

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.