Skip to content

Commit

Permalink
Fix condition used to find VS 2015 Enterprise
Browse files Browse the repository at this point in the history
The condition used to find whether Visual Studio 2015 Enterprise is
installed was incorrect as the registry key for Enterprise does not
follow the same format as Community and Professional.
This commit addresses a regression introduced by the fix for #19.
  • Loading branch information
martincostello committed Jan 27, 2016
1 parent 8f0478d commit 7da90ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SqlLocalDb.msbuild
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@
<!--
SKUs of Visual Studio 2015 below Enterprise do not have the appropriate code coverage adapter installed.
-->
<_IsVSEnterprise Condition="'$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\Setup\vs\Enterprise@ProductDir)' != ''">true</_IsVSEnterprise>
<_IsVSEnterprise Condition="'$(_IsVSEnterprise)' == '' and '$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\Setup\vs\Enterprise@ProductDir)' != ''">true</_IsVSEnterprise>
<_IsVSEnterprise Condition="'$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\Setup\vs\Enterprise@InstallResult)' != ''">true</_IsVSEnterprise>
<_IsVSEnterprise Condition="'$(_IsVSEnterprise)' == '' and '$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\Setup\vs\Enterprise@InstallResult)' != ''">true</_IsVSEnterprise>
<_IsVSEnterprise Condition="'$(_IsVSEnterprise)' == ''">false</_IsVSEnterprise>
<!--
AppVeyor has Visual Studio Test Agents installed, so can provide code coverage.
Expand Down

0 comments on commit 7da90ab

Please sign in to comment.