summaryrefslogtreecommitdiff
path: root/Tools/dotnetcli/sdk/NuGetFallbackFolder/microsoft.build.runtime/15.3.409/contentFiles/any/net46/Microsoft.Xaml.targets
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/dotnetcli/sdk/NuGetFallbackFolder/microsoft.build.runtime/15.3.409/contentFiles/any/net46/Microsoft.Xaml.targets')
-rw-r--r--Tools/dotnetcli/sdk/NuGetFallbackFolder/microsoft.build.runtime/15.3.409/contentFiles/any/net46/Microsoft.Xaml.targets21
1 files changed, 21 insertions, 0 deletions
diff --git a/Tools/dotnetcli/sdk/NuGetFallbackFolder/microsoft.build.runtime/15.3.409/contentFiles/any/net46/Microsoft.Xaml.targets b/Tools/dotnetcli/sdk/NuGetFallbackFolder/microsoft.build.runtime/15.3.409/contentFiles/any/net46/Microsoft.Xaml.targets
new file mode 100644
index 0000000000..70a1c2079e
--- /dev/null
+++ b/Tools/dotnetcli/sdk/NuGetFallbackFolder/microsoft.build.runtime/15.3.409/contentFiles/any/net46/Microsoft.Xaml.targets
@@ -0,0 +1,21 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <!--
+ With MSBuild 12, we've changed MSBuildToolsPath to for the first time point to a directory
+ outside of the .NET Framework. As a result of this, there were several targets files, of which
+ this was one, that were being referenced as out of MSBuildToolsPath that are now no longer there.
+
+ Thus, we are shimming those targets files so that they do still appear in MSBuildToolsPath, so that
+ consumers of them are not broken, but since the targets files themselves are still part of .NET,
+ the shim will internally simply redirect to the real copy of the targets file in the .NET Framework.
+ -->
+
+ <!-- In the original Microsoft.Xaml.targets this is mapped to MSBuildBinPath, which is no longer
+ the .NET Framework directory and thus will no longer be the right answer. Override it to point
+ to the correct .NET Framework location. -->
+ <PropertyGroup>
+ <XamlBuildTaskPath Condition="'$(XamlBuildTaskPath)' == ''">$(MSBuildToolsPath64)</XamlBuildTaskPath>
+ </PropertyGroup>
+
+ <Import Project="$(MSBuildFrameworkToolsPath)\Microsoft.Xaml.targets" Condition="Exists('$(MSBuildFrameworkToolsPath)\Microsoft.Xaml.targets')" />
+
+</Project>