Visual Studio 2017无法使用“无法下载安装文件"脱机安装. [英] Visual Studio 2017 fails to install offline with "Unable to download installation files"

查看:2481
本文介绍了Visual Studio 2017无法使用“无法下载安装文件"脱机安装.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我使用以下命令在笔记本电脑上创建了VS 2017 Community的脱机安装:

So I've created an offline installed of VS 2017 Community on my laptop using this command:

vs_community.exe --layout"D:\ Downloads \ VS Community 2017" --lang zh--添加Microsoft.VisualStudio.Component.CoreEditor Component.WebSocket Microsoft.VisualStudio.Workload .ManagedDesktop Microsoft.VisualStudio.Workload.NetCrossPlat Microsoft.VisualStudio.Workload.NetCoreTools Microsoft.VisualStudio.Workload.Node Microsoft.VisualStudio.Component.TypeScript.2.0

vs_community.exe --layout "D:\Downloads\VS Community 2017" --lang en-US --add Microsoft.VisualStudio.Component.CoreEditor Component.WebSocket Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.Workload.NetCrossPlat Microsoft.VisualStudio.Workload.NetCoreTools Microsoft.VisualStudio.Workload.Node Microsoft.VisualStudio.Component.TypeScript.2.0

当我将安装文件传输到公司PC(位于防火墙后面)并运行"vs_community.exe"安装文件时,我得到的只是这个错误.没有办法绕过公司防火墙或设置例外.如何离线安装VS 2017?我在这里想念什么吗?

When I transfer the setup files onto my corporate PC (which is behind a firewall) and run the "vs_community.exe" setup file, all I get is this error. There's no way to bypass the corporate firewall or to make exceptions. How do I install VS 2017 offline? Am I missing something here?

我已在笔记本电脑上安装了VS 2017,以保持Internet连接处于活动状态.然后,当我断开笔记本电脑的Internet连接并尝试再次安装时,安装程​​序将启动!因此,也许现在我的笔记本电脑上已安装了公司PC上缺少的某些依赖项?

I have installed VS 2017 on my laptop keeping the internet connection active. Then when I disconnect the internet on my laptop and try installing again, the installer launches! So perhaps there are some dependencies missing on my corporate PC that are now installed on my laptop?

上面的命令将安装.NET,.NET Core,Xamarin,Node.js,TypeScript和C ++ for Mobile.下载的总大小为13.2 GB.

The above command installs .NET, .NET core, Xamarin, Node.js, TypeScript and C++ for Mobile. The total downloaded size is 13.2 GB.

推荐答案

成功了!!我要做的就是将证书安装到根CA中!我在VS 2017文档中错过了一些注意事项:

It worked!! All I had to do was install the certificates into the root CA! Something I missed noticing in the VS 2017 docs:

如何从脱机安装文件夹中安装

How to install from the offline installation folder

  1. 安装证书(它们位于证书"文件夹中,该文件夹位于您的布局"文件夹中.)

  1. Install the certificates (They are in the "certificates" folder, which is in your Layout folder. )

只需右键单击每个,然后选择安装PFX".

Simply right-click each one and choose Install PFX.

--- 编辑:请记住使用PC上的Admin帐户安装证书,否则将无法使用...

Remember to install the certs using the Admin account on the PC, or it won't work...

这篇关于Visual Studio 2017无法使用“无法下载安装文件"脱机安装.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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