安装 Dot Net Core 1.0.0 VS 2015 Tools Preview 2 时出现问题
Problems installing Dot Net Core 1.0.0 VS 2015 Tools Preview 2
每次我尝试安装 DotNetCore.1.0.0-VS2015Tools.Preview2.exe 包时,我都会收到一条错误消息:
Setup Failed One or more issues caused the setup to fail. Please fix
the issues and then retry setup. For more information see the log
file. Setup has detected that Visual Studio 2015 Update 3 may not be
completely installed. Please repair Visual Studio 2015 Update 3, then
install this product again.
当我查看日志文件时,我发现以下行似乎是安装过程中导致错误的原因:
Condition 'WixBundleInstalled OR NOT(((VS2015CommunityUpdateVersion <>
VS2015UpdateVersion) AND (VS2015CommunityExists) AND
(VS2015UpdateVersionExists)) OR ((VS2015ProfessionalUpdateVersion <>
VS2015UpdateVersion) AND (VS2015ProfessionalExists) AND
(VS2015UpdateVersionExists)) OR ((VS2015EnterpriseUpdateVersion <>
VS2015UpdateVersion) AND (VS2015EnterpriseExists) AND
(VS2015UpdateVersionExists)) OR ((VS2015WebExpressUpdateVersion <>
VS2015UpdateVersion) AND (VS2015WebExpressExists) AND
(VS2015UpdateVersionExists))) OR (SKIP_VSU_CHECK=1) OR
(WixBundleAction=2)' evaluates to false.
更新 3 的简单修复未能解决问题,因此我试图求助于更新的 uninstall/reinstall。当经过
Control Panel > Programs and Features > View Installed updates
要卸载更新,它会直接跳转到“Setup Completed
”屏幕,说明所有组件都已卸载,没有任何进度屏幕。然后,当我尝试 运行 更新 3 安装程序时,它说更新已安装。
然后我尝试使用 Revo Uninstaller,但在清除文件夹和注册表项后,同样的事情发生了。
我什至尝试对包裹进行 /uninstall /force
,但无济于事。似乎有什么东西卡在某个地方,使更新保持注册状态。
有什么建议吗?
编辑:我相信 从长远来看可能更好,因为它不涉及注册表黑客攻击。请先尝试他下面的说明。 我会为后代留下我原来的答案。
我在全新的 Windows 10 安装和全新的 Visual Studio 2015 安装中收到了相同的错误消息。我相信 VS2015 安装过程会自动下载并应用 Update 3。
查看日志文件显示它正在比较几个版本号。就我而言,'Community' 版本不匹配。
[27B8:1BBC][2016-07-20T16:17:11]i000: Setting string variable 'VS2015UpdateVersion' to value '14.0.25420'
[27B8:1BBC][2016-07-20T16:17:11]i000: Setting string variable 'VS2015ProfessionalUpdateVersion' to value '14.0.25420'
[1A60:0CD4][2016-07-20T16:14:36]i000: Setting string variable 'VS2015CommunityUpdateVersion' to value '14.0.25424'
互联网历史上没有人使用过 14.0.25424
版本,所以我认为这一定是错字。在注册表中将 VS Community UpdateVersion
字符串值从 14.0.25424
更改为 14.0.25420
后,安装程序对我来说工作正常。
要检查的完整注册表项包括:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DevDiv\vs\Servicing.0\community
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DevDiv\vs\Servicing.0\community33
两者都应具有以下字符串值:
"UpdateVersion"="14.0.25420"
希望这对您有所帮助。
我能够通过 运行 SKIP_VSU_CHECK 参数安装它
DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1
了解问题,https://msdn.microsoft.com/en-us/vs-knownissues/vs2015-update3-rc,详细介绍与预览版 1 类似的问题。
可能值得关注有关预览版 2 的更新。
我有同样的问题,但还没有解决。我的版本号与预览版 1 的修复程序中列出的版本号不同,此答案只是将您指向官方问题页面。
[更新] 关于这个的官方说法是 https://github.com/aspnet/Tooling 是
"Due to a known issue in the setup detection logic, even though you have Visual Studio 2015 Update 3 RC installed, you might see the following message when you run the installer. This will be fixed in the next build. For now, to work around this and bypass the check, you can run the EXE from a command prompt and then pass SKIP_VSU_CHECK=1 at the end. "
[更新 2] - 有关升级 到 rc2 from rc1[=31= 的深入信息], David Pine 关于所需步骤的博客非常好。
ievangelist 点 github 点 io /blog/migrating-to-rc2/
我先从@Andrey 那里尝试了这个
DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1
这部分有效,因为我能够完成安装。在 VS 启动时,会出现一条警告消息,提示某些组件无法运行。我可以编辑代码,但不能 运行 示例应用程序。
我记得之前 "Visual Studio Community 2015" 安装中关于 "Visual C++ 2015 Redistributable" 版本不匹配的警告消息。所以我的下一个实验是进入 "Control Panel -- Programs and Features" 并卸载我找到的 2 个示例“(x64)”和“(x86)”。然后我运行修复安装了"Visual Studio Community 2015"。成功。
我 运行 使用以下命令从 cmd 安装:
DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1
安装没有任何问题
我遇到了同样的问题,但上述 none 个答案对我有所帮助。
问题可能是由 exe 试图通过 IE 下载内容引起的,因此仅从 IE 更改一两个设置可能是不够的,但建议将它们重置为默认设置,这解决了我的问题。
使用 CMD 和 运行 这个命令
DotNetCore.1.0.0-VS2015Tools.Preview2.exe /layout
每次我尝试安装 DotNetCore.1.0.0-VS2015Tools.Preview2.exe 包时,我都会收到一条错误消息:
Setup Failed One or more issues caused the setup to fail. Please fix the issues and then retry setup. For more information see the log file. Setup has detected that Visual Studio 2015 Update 3 may not be completely installed. Please repair Visual Studio 2015 Update 3, then install this product again.
当我查看日志文件时,我发现以下行似乎是安装过程中导致错误的原因:
Condition 'WixBundleInstalled OR NOT(((VS2015CommunityUpdateVersion <> VS2015UpdateVersion) AND (VS2015CommunityExists) AND (VS2015UpdateVersionExists)) OR ((VS2015ProfessionalUpdateVersion <> VS2015UpdateVersion) AND (VS2015ProfessionalExists) AND (VS2015UpdateVersionExists)) OR ((VS2015EnterpriseUpdateVersion <> VS2015UpdateVersion) AND (VS2015EnterpriseExists) AND (VS2015UpdateVersionExists)) OR ((VS2015WebExpressUpdateVersion <> VS2015UpdateVersion) AND (VS2015WebExpressExists) AND (VS2015UpdateVersionExists))) OR (SKIP_VSU_CHECK=1) OR (WixBundleAction=2)' evaluates to false.
更新 3 的简单修复未能解决问题,因此我试图求助于更新的 uninstall/reinstall。当经过
Control Panel > Programs and Features > View Installed updates
要卸载更新,它会直接跳转到“Setup Completed
”屏幕,说明所有组件都已卸载,没有任何进度屏幕。然后,当我尝试 运行 更新 3 安装程序时,它说更新已安装。
然后我尝试使用 Revo Uninstaller,但在清除文件夹和注册表项后,同样的事情发生了。
我什至尝试对包裹进行 /uninstall /force
,但无济于事。似乎有什么东西卡在某个地方,使更新保持注册状态。
有什么建议吗?
编辑:我相信
我在全新的 Windows 10 安装和全新的 Visual Studio 2015 安装中收到了相同的错误消息。我相信 VS2015 安装过程会自动下载并应用 Update 3。
查看日志文件显示它正在比较几个版本号。就我而言,'Community' 版本不匹配。
[27B8:1BBC][2016-07-20T16:17:11]i000: Setting string variable 'VS2015UpdateVersion' to value '14.0.25420'
[27B8:1BBC][2016-07-20T16:17:11]i000: Setting string variable 'VS2015ProfessionalUpdateVersion' to value '14.0.25420'
[1A60:0CD4][2016-07-20T16:14:36]i000: Setting string variable 'VS2015CommunityUpdateVersion' to value '14.0.25424'
互联网历史上没有人使用过 14.0.25424
版本,所以我认为这一定是错字。在注册表中将 VS Community UpdateVersion
字符串值从 14.0.25424
更改为 14.0.25420
后,安装程序对我来说工作正常。
要检查的完整注册表项包括:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DevDiv\vs\Servicing.0\community
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DevDiv\vs\Servicing.0\community33
两者都应具有以下字符串值:
"UpdateVersion"="14.0.25420"
希望这对您有所帮助。
我能够通过 运行 SKIP_VSU_CHECK 参数安装它
DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1
了解问题,https://msdn.microsoft.com/en-us/vs-knownissues/vs2015-update3-rc,详细介绍与预览版 1 类似的问题。
可能值得关注有关预览版 2 的更新。
我有同样的问题,但还没有解决。我的版本号与预览版 1 的修复程序中列出的版本号不同,此答案只是将您指向官方问题页面。
[更新] 关于这个的官方说法是 https://github.com/aspnet/Tooling 是
"Due to a known issue in the setup detection logic, even though you have Visual Studio 2015 Update 3 RC installed, you might see the following message when you run the installer. This will be fixed in the next build. For now, to work around this and bypass the check, you can run the EXE from a command prompt and then pass SKIP_VSU_CHECK=1 at the end. "
[更新 2] - 有关升级 到 rc2 from rc1[=31= 的深入信息], David Pine 关于所需步骤的博客非常好。
ievangelist 点 github 点 io /blog/migrating-to-rc2/
我先从@Andrey 那里尝试了这个
DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1
这部分有效,因为我能够完成安装。在 VS 启动时,会出现一条警告消息,提示某些组件无法运行。我可以编辑代码,但不能 运行 示例应用程序。
我记得之前 "Visual Studio Community 2015" 安装中关于 "Visual C++ 2015 Redistributable" 版本不匹配的警告消息。所以我的下一个实验是进入 "Control Panel -- Programs and Features" 并卸载我找到的 2 个示例“(x64)”和“(x86)”。然后我运行修复安装了"Visual Studio Community 2015"。成功。
我 运行 使用以下命令从 cmd 安装: DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1
安装没有任何问题
我遇到了同样的问题,但上述 none 个答案对我有所帮助。
问题可能是由 exe 试图通过 IE 下载内容引起的,因此仅从 IE 更改一两个设置可能是不够的,但建议将它们重置为默认设置,这解决了我的问题。
使用 CMD 和 运行 这个命令
DotNetCore.1.0.0-VS2015Tools.Preview2.exe /layout