VS2017 RC1 安装安装错误 - Microsoft.PortableLibrary.TargetingPack.Msi 失败 - 没有 XAML [英] VS2017 RC1 Installation installation error - Microsoft.PortableLibrary.TargetingPack.Msi failed - No XAML
问题描述
我在安装 VS2017 时遇到了错误
I had errors installing VS2017 with
包 'Microsoft.PortableLibrary.TargetingPack.Msi,version=15.0.26004.1' 安装失败
实际的 IDE 将打开,但我没有任何 XAML 功能 - 在安装此组件之前安装似乎失败.XAML 文件不会加载,并且文本编辑器"下没有列出 XAML.
The actual IDE will open but I don't have any XAML functionality - it appeared to fail the installation before this component was installed. XAML files won't load and there is no XAML listed under 'Text Editor'.
如何解决这个错误?
推荐答案
经过几个小时终于搞定了:
After several hours finally managed to get it to work:
仍然不确定究竟什么是目标包 - 以及为什么 VS 无法安装它,但我手动安装了这个包并设法让它工作:
Still not sure exactly what a targeting pack is - and why VS couldn't install it but I manually installed this package and managed to get it to work:
- 手动安装:
Microsoft .NET Framework 4.6.2 开发包和语言包
https://www.microsoft.com/en-us/下载/details.aspx?id=53321
我所做的其他可能有助于解决问题的事情:
Other things I did that may have contributed to the solution:
- 我重启了
- 我删除了
C:ProgramDataMicrosoftVisualStudioPackages
中的所有文件 - 实际上我将它们移到了OLD
文件夹,后来又删除了它们.重新启动安装后,您将在此处看到下载的软件包. - 我之前创建了一个从
%ProgramData%Package Cache
到另一个驱动器的符号链接以节省空间 (https://superuser.com/questions/455853/can-i-delete-the-folder-c-programdata-package-cache).这个符号链接似乎不再起作用,让我在%ProgramData%Package Cache
中有一些文件,其余的则在另一个驱动器中.我将它们移过来并重新创建了链接.如果这是您为了节省磁盘空间而执行的操作而忘记了,那么这可能会导致解决方案失败.
- I rebooted
- I removed all files in
C:ProgramDataMicrosoftVisualStudioPackages
- actually I moved them to anOLD
folder and later deleted them. You will see packages downloaded here after you restart the install. - I had previously created a symbolic link from
%ProgramData%Package Cache
to another drive to save space (https://superuser.com/questions/455853/can-i-delete-the-folder-c-programdata-package-cache). This symbolic link didn't seem to work anymore leaving me with some files in%ProgramData%Package Cache
and the rest in the other drive. I moved them over and recreated the link. If this is something you did to save disk space and forgot then that could contribute towards a failed solution.
上面的东西解决了这个问题,我现在又恢复了 XAML
.
Something above fixed the issue and I now have XAML
back again.
注意:VS2017 RC1 不支持离线安装,所以这是我探索并放弃的另一个途径.命令行开关目前什么都不做.
Note: The VS2017 RC1 does not support offline installation so that was another avenue I explored and gave up on. The command line switches currently do NOTHING.
我相信我需要的包是以下一个,但不是绝对确定.
I believe the package I needed is the following one but not absolutely sure.
C:ProgramDataMicrosoftVisualStudioPackagesMicrosoft.PortableLibrary.TargetingPack.Msi,version=15.0.25719.0
C:ProgramDataMicrosoftVisualStudioPackagesMicrosoft.PortableLibrary.TargetingPack.Msi,version=15.0.25719.0
这篇关于VS2017 RC1 安装安装错误 - Microsoft.PortableLibrary.TargetingPack.Msi 失败 - 没有 XAML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!