MSBuild Tools offline

Posted marklove

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MSBuild Tools offline相关的知识,希望对你有一定的参考价值。

 

如何制作自己的离线包

https://stackoverflow.com/questions/46684230/visualstudio-build-tools-2017-offline-installer

https://developercommunity.visualstudio.com/content/problem/39981/can-not-install-offline-unable-to-download-install-1.html#reply-54883

https://developercommunity.visualstudio.com/content/problem/137779/the-getreferencenearesttargetframeworktask-task-wa.html

https://docs.microsoft.com/en-us/visualstudio/install/workload-and-component-ids?view=vs-2019

All steps to install build tools:

  1. Download build tools
  2. Download layout files for offline installation:
    • Possible workloads are specified here. Following command contains workloads for msbuild and C++ build tools.
    • Run (exe file will have some version numbers in name): vs_BuildTools.exe --layout c:BT2017offline --add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.WebBuildTools --add Microsoft.VisualStudio.Workload.NetCoreBuildTools --lang en-US
  3. Copy c:BT2017offline to box on which you want to install it.
  4. Open mmc and import all certificates from c:BT2017offlinecertificates to "Trusted Root Certification Authorities" of computer (not current user)
  5. Run (exe file will have some version numbers in name): c:BT2017offlinevs_BuildTools.exe --noweb
  6. Continue clicking next ...
 那么问题来了这些 
--add Microsoft.VisualStudio.Workload.MSBuildTools
参数去哪里找?    仔细阅读 !!!!!!!!!!!
对没错就是这个链接
 
 
还有一个证书问题
第一次在线装完后 得导出证书 不然。。下次安装 离线包没证书可能你会疯掉。
 
如果遇到问题
建议看看

非附属组件

这些是不包含在任何工作负载中的组件,但可以选择作为单独的组件。

 

 

以上是关于MSBuild Tools offline的主要内容,如果未能解决你的问题,请参考以下文章

无法在构建服务器上修改MSBuild 15.0私有注册表

通过 MSBuild 和 Visual Studio Express 2008 的 DirectX SDK 包含/库文件夹:缺失

c++ build tools 安装包丢失或损坏

npm C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe` failed with exit code: 1

npm C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe` failed with exit code: 1

npm C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe` failed with exit code: 1