Each time I try to install the DotNetCore.1.0.0-VS2015Tools.Preview2.exe package I get an error saying the following:
Setup Failed On
I was able to install it by running with SKIP_VSU_CHECK parameter
DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1
I tried this first from @Andrey
DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1
This partly worked as in I was able to complete the installations. On VS startup there was a warning message that some components would not work. I was able to edit code but not to run an example app.
I remembered an earlier warning message from the "Visual Studio Community 2015" installation about mismatching versions of "Visual C++ 2015 Redistributable". So my next experiment was to go into "Control Panel -- Programs and Features" and uninstall the 2 x examples I found "(x64)" and "(x86)". I then ran a repair installation of "Visual Studio Community 2015". Success.
Know issues, https://msdn.microsoft.com/en-us/vs-knownissues/vs2015-update3-rc, details a similar issue with preview1.
May be worth keeping an eye on for updates about preview2.
I have the same issue but haven't solved it yet. My version numbers are different to those listed for the fix for preview 1, this answer is just pointing you to the official issue page.
[Update] the official word on this is at https://github.com/aspnet/Tooling is
"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. "
[Update 2] - for in-depth info on upgrading to rc2 from rc1, David Pine's blog on the steps required is very good.
ievangelist dot github dot io /blog/migrating-to-rc2/
I ran the installed from cmd using the following: DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1
Installed without any issues
EDIT: I believe that Andrey's solution is probably better long term, as it doesn't involve registry hacking. Please try his instructions below first. I will leave my original answer in place for posterity.
I received the same error message on a fresh Windows 10 install, with a fresh Visual Studio 2015 install. I believe the VS2015 install process automatically downloaded and applied Update 3 during the process.
Chasing the logfile showed that it was comparing several version numbers. In my case, the 'Community' edition version mismatched.
[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'
Nobody in the history of the internet has ever used version 14.0.25424
, so I assumed it must be a typo. After changing the VS Community UpdateVersion
string value from 14.0.25424
to 14.0.25420
in the registry, the installer worked fine for me.
The full registry keys to check include:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DevDiv\vs\Servicing\14.0\community
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DevDiv\vs\Servicing\14.0\community\1033
Both should have the following string value:
"UpdateVersion"="14.0.25420"
Hope this helps.
Using CMD and run this command
DotNetCore.1.0.0-VS2015Tools.Preview2.exe /layout