Skip to content

Commit

Permalink
Find C#/VB targets using MSBuildToolsVersion
Browse files Browse the repository at this point in the history
Fixes #127 by using MSBuildToolsVersion instead of VisualStudioVersion,
since they will no longer match after dotnet/msbuild#3778.
  • Loading branch information
rainersigwald authored and Oren Novotny committed Nov 5, 2018
1 parent 80092d4 commit 1432809
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -10,7 +10,7 @@
-->
<PropertyGroup Condition="'$(LanguageTargets)' == '' and '$(OS)' == 'Windows_NT' and '$(MSBuildRuntimeType)' == 'Full' ">
<!-- Workaround for lack of XAML support in the new project system -->
<LanguageTargets Condition="'$(_SdkLanguageSourceName)' != 'FSharp'" >$(MSBuildExtensionsPath)\$(VisualStudioVersion)\Bin\Microsoft.$(_SdkLanguageSourceName).targets</LanguageTargets>
<LanguageTargets Condition="'$(_SdkLanguageSourceName)' != 'FSharp'" >$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Bin\Microsoft.$(_SdkLanguageSourceName).targets</LanguageTargets>
<LanguageTargets Condition="'$(_SdkLanguageSourceName)' == 'FSharp'" >$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets</LanguageTargets>
</PropertyGroup>

Expand Down

0 comments on commit 1432809

Please sign in to comment.