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:
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.
with the help of Yaakov's answer this is what we did:
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
This created a folder @ c:\vslayout . Which was about 1.2 GB in size.
Copy the folder on build machine.
Install certificates available @ C:\vslayout\certificates
to computer (not to user)
run C:\vslayout\vs_BuildTools.exe --noweb
command to install msbuild.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With