Skip to content

Commit cd66372

Browse files
authored
Merge pull request #9764 from Kuldeep-MS/fix/rel6.0/d3dcompiler
Work around d3d redist incompat.
2 parents 95234f1 + 8a81e36 commit cd66372

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

global.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"native-tools": {
2222
"strawberry-perl": "5.28.1.1-1",
2323
"net-framework-48-ref-assemblies": "0.0.0.1",
24+
"windows-sdk-d3d-redist": "1.0.0",
2425
"dotnet-api-docs_net6.0": "0.0.0.4"
2526
}
2627
}

src/Microsoft.DotNet.Wpf/redist/D3DCompiler/D3DCompiler.vcxproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@
3333
</PropertyGroup>
3434
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
3535
<PropertyGroup>
36-
<!-- ARM64 will use the windows\system32 version -->
37-
<RedistSourcePath>$(Windows10SdkPath)Redist\D3D\$(Architecture)\$(D3DCompilerDllBaseName)$(D3DCompilerVersion).dll</RedistSourcePath>
36+
<!-- ARM64 will use the windows\system32 version -->
37+
<!-- ISSUE!! https://github.com/dotnet/wpf/issues/9670: An updated D3D Redist is incompatible with Win10, at least when built with the 19041 Windows SDK. This is
38+
a temporary workaround for this issue. We pull from netcore native assets instead. -->
39+
<RedistSourcePath>$(RepositoryToolsDir)native\bin\windows-sdk-d3d-redist\1.0.0\D3D\$(Architecture)\$(D3DCompilerDllBaseName)$(D3DCompilerVersion).dll</RedistSourcePath>
3840
</PropertyGroup>
3941
<PropertyGroup Label="Globals">
4042
<VCProjectVersion>16.0</VCProjectVersion>

0 commit comments

Comments
 (0)