Skip to content

Commit 76e0fdc

Browse files
Dustin Mastersdustinsoftware
authored andcommitted
Update VSToolsPath to not be hard-coded to specific VS version
1 parent cc9de46 commit 76e0fdc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/React.Sample.Cassette/React.Sample.Cassette.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
</ItemGroup>
209209
<PropertyGroup>
210210
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
211-
<VSToolsPath Condition="'$(VSToolsPath)' == ''">C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\</VSToolsPath>
211+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
212212
</PropertyGroup>
213213
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
214214
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />

src/React.Sample.Mvc4/React.Sample.Mvc4.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
</ItemGroup>
191191
<PropertyGroup>
192192
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
193-
<VSToolsPath Condition="'$(VSToolsPath)' == ''">C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\</VSToolsPath>
193+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
194194
</PropertyGroup>
195195
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
196196
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
@@ -227,7 +227,7 @@
227227
</PropertyGroup>
228228
<Error Condition="!Exists('..\packages\JavaScriptEngineSwitcher.V8.Native.win-x64.3.0.0\build\JavaScriptEngineSwitcher.V8.Native.win-x64.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\JavaScriptEngineSwitcher.V8.Native.win-x64.3.0.0\build\JavaScriptEngineSwitcher.V8.Native.win-x64.props'))" />
229229
</Target>
230-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
230+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
231231
Other similar extension points exist, see Microsoft.Common.targets.
232232
<Target Name="BeforeBuild">
233233
</Target>

0 commit comments

Comments
 (0)