From 8a81e362c3d48c752fcf0f072fc0fa25d442a05d Mon Sep 17 00:00:00 2001 From: Kuldeep LNU Date: Thu, 12 Sep 2024 04:08:11 +0530 Subject: [PATCH] Porting workaround for D3DCompiler redist incompat from release/9.0-rc1 to release/6.0 --- global.json | 1 + .../redist/D3DCompiler/D3DCompiler.vcxproj | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/global.json b/global.json index f59d50c29fe..82c98286984 100644 --- a/global.json +++ b/global.json @@ -21,6 +21,7 @@ "native-tools": { "strawberry-perl": "5.28.1.1-1", "net-framework-48-ref-assemblies": "0.0.0.1", + "windows-sdk-d3d-redist": "1.0.0", "dotnet-api-docs_net6.0": "0.0.0.4" } } diff --git a/src/Microsoft.DotNet.Wpf/redist/D3DCompiler/D3DCompiler.vcxproj b/src/Microsoft.DotNet.Wpf/redist/D3DCompiler/D3DCompiler.vcxproj index 9dd3c1bb39f..a1fde1426a5 100644 --- a/src/Microsoft.DotNet.Wpf/redist/D3DCompiler/D3DCompiler.vcxproj +++ b/src/Microsoft.DotNet.Wpf/redist/D3DCompiler/D3DCompiler.vcxproj @@ -33,8 +33,10 @@ - - $(Windows10SdkPath)Redist\D3D\$(Architecture)\$(D3DCompilerDllBaseName)$(D3DCompilerVersion).dll + + + $(RepositoryToolsDir)native\bin\windows-sdk-d3d-redist\1.0.0\D3D\$(Architecture)\$(D3DCompilerDllBaseName)$(D3DCompilerVersion).dll 16.0