D3DCompiler_47_cor3.dll fails to load in RC1 tests
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
In rc1, the following error shows up in some tests:

Upon further investigation, between builds https://dev.azure.com/dnceng/internal/_build/results?buildId=2516540 and https://dev.azure.com/dnceng/internal/_build/results?buildId=2517162 of WPF, a change occurred on the build machine that moved the d3d compiler located at `C:\Program Files (x86)\Windows Kits\10\Redist\D3D\\` to a newer version. WPF redists this binary as part of the windows desktop shared framework layout. I don't know whether the bug manifests across all releases, but the d3d compiler redisted with the windows desktop shared framework is the same across all releases.
**Older version without issue:**

**Newer version that causes issue:**

My local copy matches the old version, but I did manage to get the new version to install by adding the Win11 SDK `10.0.26100.0` component in VS. @dotnet/dnceng's rollout schedule shows an update started on 8/14 (https://dev.azure.com/dnceng/internal/_git/dotnet-helix-machines/pullrequest/41664?_a=files&path=/definitions/shared/windows.yaml), but that new SDK version is not in our images. So maybe it came in via some other path. My hunch is some patch for the windows SDK
@Kuldeep-MS for more details on the failure.
**Failure Details**
All WPF application will encounter this error. Since wpfgfx depends on D3DCompiler_47_cor3.dll, if D3DCompiler_47_cor3.dll fails to load, wpfgfx will also fail to load, leading to the application's crash.
Contributor guide
Assessment
This issue has not been assessed yet.