VisualStudio Build Tools 2017 离线安装程序 [英] VisualStudio Build Tools 2017 offline installer

查看:355
本文介绍了VisualStudio Build Tools 2017 离线安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为构建工具生成了一个离线安装程序,如下所示:vs_BuildTools.exe --layout c:VS_BuildTools2017_offline --add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.VCTools --lang en-US

I generate an an offline installer for the build tools like this: vs_BuildTools.exe --layout c:VS_BuildTools2017_offline --add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.VCTools --lang en-US

我将此文件夹移动到构建代理(它没有互联网连接,不,它永远不会有互联网连接!),然后执行 vs_BuildTools.exe即使使用 --noWeb--noweb 在该文件夹中,但无论我给出什么选项,它将始终失败,没有可用的互联网连接.当然我错过了一些东西,所以任何关于赞赏的提示

I move this folder to a build agent (which has no internet connection, and no, it will never have one!), and then execute the vs_BuildTools.exe in that folder even with --noWeb or --noweb, but no matter what option I give, it will always fail with no internet connection available. Surely I am missing something, so any hints on what are appreciated

推荐答案

我也遇到了这个问题.

一个重要的步骤是在目标机器上运行安装程序之前安装证书:

One important step is to install the certificates before running the installer on the target machine:

  • 安装证书,它们位于证书"文件夹中,该文件夹位于您的 Layout 文件夹中.右键单击每个以安装它.请记住使用 PC 上的管理员帐户安装证书.IE.不仅适用于当前用户.
  • 运行安装文件.

答案最初发布在此处.

此外,我还注意到,在离线机器上运行安装程序时,它默认选择的项目比下载的项目多.我不得不取消选择它们以安装构建工具,而不是 SDK 等等...

In addition I also noticed that when running the installer on the offline machine it has by default selected some more items than what was downloaded. I had to deselect them to only install the build tools, not the SDK and so on...

但安装仍然失败,我目前看到安装文件未下载",所以我仍然无法完成整个安装.它是 microsoft.visualstudio.vc.msbuild.arm64.vsix 可能包含在其他必须--added 的组件中.

But still the install failed, I am currently seeing "An installation file did not download" so I have still not managed to complete the whole install. It's microsoft.visualstudio.vc.msbuild.arm64.vsix maybe it's included in some other component that have to be --added.

更新:没关系,我的最后一个问题是由于没有使用--noweb,所以没有错误.

Update: Nevermind, my last problem was due to not using --noweb, with it there were no errors.

这篇关于VisualStudio Build Tools 2017 离线安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆