Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSBuild tools offline installation

I am trying to create MSBuild offline installation using this link.

I first downloaded MSBuild tool 2019

Then I ran this command:

  vs_community.exe --layout c:\vslayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.Component.MSBuild --add Microsoft.VisualStudio.Component.CoreBuildTools 
--add Microsoft.VisualStudio.Component.Roslyn.Compiler --add Microsoft.NetCore.BuildTools.ComponentGroup --add Microsoft.NetCore.Component.SDK --add Microsoft.VisualStudio.Component.NuGet.BuildTools --add Microsoft.Net.Core.Component.SDK.2.1 --includeOptional --lang en-US 

I am confused now about what dependencies I must include to build .net 4.5 based windows and web application. I also need to build .core applications.

I was reading this page which list multiple dependencies. Which one I must include? They have:

  1. Azure development build tools
  2. Data storage and processing build tools
  3. .NET desktop build tools
  4. MSBuild Tools
  5. .NET Core build tools
  6. Node.js build tools

    I only need ability to build .net 4.5 windows and web apps (ASP.NET MVC, ASP.NET Web API, Console app) & .NET Core based application. Please suggest required dependencies. I think I need to include all dependenices listed in point 3, 4 & 5.

like image 1000
SharpCoder Avatar asked Sep 05 '25 06:09

SharpCoder


1 Answers

with the help of Yaakov's answer this is what we did:

  1. Downloaded the build tools
  2. Ran following command to create offline installation file.

    vs_BuildTools.exe --layout c:\vslayout --add Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools --add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.NetCoreBuildTools --add Microsoft.VisualStudio.Workload.WebBuildTools --add Microsoft.Net.Component.4.5.TargetingPack --includeOptional --lang en-US

  3. This created a folder @ c:\vslayout . Which was about 1.2 GB in size.

  4. Copy the folder on build machine.

  5. Install certificates available @ C:\vslayout\certificates to computer (not to user)

  6. run C:\vslayout\vs_BuildTools.exe --noweb command to install msbuild.

like image 65
SharpCoder Avatar answered Sep 07 '25 19:09

SharpCoder