我可以下载并安装VS2017 15.9升级吗? [英] Can I download and install just the VS2017 15.9 upgrade?

查看:96
本文介绍了我可以下载并安装VS2017 15.9升级吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


提前致谢。



我的构建机器上现在有VS2017,一切都很好。我需要升级到VS2017 15.9.4,以便我可以继续使用.NET Core 2.1.7安装。我已尝试从VS内部执行此操作,但我得到的是,"无法找到与以下参数匹配的已安装产品
。 installPath:C:\Program Files(x86)\ Microsoft Visual Studio \\\ 2017 \\\ Enterprise。



生成的日志文件包含它:



错误:Microsoft.VisualStudio.Setup.Download.DownloadFailureException:WebClient下载失败:无法连接到远程服务器。位下载失败:错误上下文:BG_ERROR_CONTEXT_REMOTE_FILE,错误代码:-2145844845。 WinInet下载失败:对象
引用未设置为对象的实例。



我不确定哪个远程服务器无法点击。我可以下载更新并安装它吗?或者在我的构建服务器上执行某些操作以使其访问"远程服务器"? 我真的,为了获得升级,我真的不想做一个清理和2017年的新安装
。 如果我能找到更新VS 2017的方法会更清洁。



谢谢。



KJ

解决方案

Hi Logan_Therrion


根据您此时的情况,我怀疑某些软件包已损坏或遗漏,我建议您先修复VS:


  1. 使用管理员权限打开命令提示符
  2. 运行以下命令(这将清除previosu安装缓存。-full选项很重要)"%programfiles(x86)%\ Mesrosoft Visual Studio \Installer \resources\app\layout \InstallCleanup.exe"
    -full
  3. 重新启动安装程序

期待你的回复。


Br


可能


Thanks in advance.

I have VS2017 on my build machine now and all is well. I need to upgrade to VS2017 15.9.4 so that I can move forward with the .NET Core 2.1.7 install. I've tried doing this from within VS and I am getting, "an installed product matching the following parameters cannot be found. installPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise.

The log file that is generated has this in it:

Error: Microsoft.VisualStudio.Setup.Download.DownloadFailureException: WebClient download failed: Unable to connect to the remote server. Bits download failed: Error context: BG_ERROR_CONTEXT_REMOTE_FILE, Error code: -2145844845. WinInet download failed: Object reference not set to an instance of an object.

I'm not sure what remote server can't be hit. Can I just download the update and install it? Or do something on my build server to make it access the "remote server"?  I really, reeeeally don't want to have to do a clean up and a new install of 2017 just to get the upgrade.  It would be much cleaner if I can just find a way to update VS 2017.

Thanks.

K.J.

解决方案

Hi Logan_Therrion

Based on your situation at this time, I suspect some package has corrupted or miss, I recommend you to repair VS firstly: how to repair VS. then update VS to test again.

Could you set any proxy in your server? in general, this error is related that proxy setting limit to remote server can't connect well. If so, you could open cmd and type "ping download.microsoft.com" to check if you could connect to the download server.

The above shows that the network is well-connected.

Or if it shows any time out error message, it means that your network can't connect to the resource server. I suggest you clean up VS to reinstall or use offline installer:

  1. Open a command prompt with admin privileges
  2. Run following command (this will cleanup previosu install cache. -full option is important) "%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe" –full
  3. Restart the installer

Looking forwards your reply.

Br

May


这篇关于我可以下载并安装VS2017 15.9升级吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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