From 03ed695553f0f7c43461974238899071aaf7678a Mon Sep 17 00:00:00 2001 From: "Matt Mitchell (.NET)" Date: Fri, 30 Aug 2024 11:07:06 -0700 Subject: [PATCH] Work around d3d redist incompat. Works around https://github.com/dotnet/wpf/issues/9670. An updated redist came in from a recent update. The old redist has been uploaded to netcorenativeassets, and we use that rather than the Windows SDK path to resolve the file paths. --- global.json | 3 ++- .../redist/D3DCompiler/D3DCompiler.vcxproj | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/global.json b/global.json index ec7129c9490..1a39ee9e2da 100644 --- a/global.json +++ b/global.json @@ -20,6 +20,7 @@ }, "native-tools": { "strawberry-perl": "5.38.0.1", - "net-framework-48-ref-assemblies": "0.0.0.1" + "net-framework-48-ref-assemblies": "0.0.0.1", + "windows-sdk-d3d-redist": "1.0.0" } } diff --git a/src/Microsoft.DotNet.Wpf/redist/D3DCompiler/D3DCompiler.vcxproj b/src/Microsoft.DotNet.Wpf/redist/D3DCompiler/D3DCompiler.vcxproj index 9dd3c1bb39f..9a7771f5b45 100644 --- a/src/Microsoft.DotNet.Wpf/redist/D3DCompiler/D3DCompiler.vcxproj +++ b/src/Microsoft.DotNet.Wpf/redist/D3DCompiler/D3DCompiler.vcxproj @@ -25,16 +25,18 @@ - $(D3DCompilerDllBaseName)$(D3DCompilerVersion)$(WpfVersionSuffix) - - $(Windows10SdkPath)Redist\D3D\$(Architecture)\$(D3DCompilerDllBaseName)$(D3DCompilerVersion).dll + + + $(RepositoryToolsDir)native\bin\windows-sdk-d3d-redist\1.0.0\D3D\$(Architecture)\$(D3DCompilerDllBaseName)$(D3DCompilerVersion).dll 16.0