Search code examples
visual-studioinstallationvisual-studio-2017clone

How to clone visual studio community


I have the latest version of visual studio community with lots of features I selected before. now I want to clone all of the installation from my computer into my laptop. I know there has to be a way of doing that without downloading 20 gigabytes from scratch.

I think there was a way to make a installer using command prompt. but I don't remember what it was exactly. thanks for help.


Solution

  • To create a local copy of Visual Studio setup files,

    Step 1 - Download the Visual Studio bootstrapper for Visual Studio Community vs_community.exe

    Step 2 - Open a command prompt as Administrator then point to the location of the downloaded file, and use one of the commands.

    To create a complete local layout with all features (this will take a long time), run:

    vs_community.exe --layout c:\vs2017layout --lang en-US
    

    For .NET desktop and Office development, run:

    vs_community.exe --layout c:\vs2017layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.Office --includeOptional --lang en-US
    

    You can change c:\vs2017layout to another path as you like.

    -add define component IDs to add

    ASP.NET and web development ID: Microsoft.VisualStudio.Workload.NetWeb
    .NET Core cross-platform development ID: Microsoft.VisualStudio.Workload.NetCoreTools

    For more details refer to Install Visual Studio 2017 on low bandwidth or unreliable network environments