-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dotnet-sdk-10.0.100-alpha.1.25057.15] System.Windows.Threading.Dispatcher cannot find type "MS.Internal.SecurityCriticalDataClass`1" in PresentationThemeAero #10256
Comments
Internal types are an implementation detail and subject to change without notice. Is the original application trying to use an internal type? |
It's a full blown reflection party tbh. |
Right. Well then yeah sorry, unless they have a strong business case, that app will not be compatible with .NET 10. |
Should we consider to officially obsolete all old WPF themes onward and give only support for |
@MichaeIDietrich you probably should open a new issue/discussion for that. It's not like we needed to fix anything in the other themes in the past decade, so not sure what the gain would be. |
Ok. We will file an issue for this application to let the owner know. |
The use case is to use a different theme as drop-in replacement (to get proper looking Windows 8-10 themes, not the lackluster theme shipped out of the box) which is impossible to do without hacking it in. I've filed #110 over 6 years ago. (Not arguing for this bug. I know reflection is brittle and on me to fix.) |
@gix I understand the scenario and I am sure you can make it continue to work after you account for the changes in the internal code. |
Description
When run the 3rd party application with the latest .NET 10 build, it failed with custom error: "
ThemeManager is not operational.
". We found that this is due toSystem.Windows.Threading.Dispatcher cannot find type "MS.Internal.SecurityCriticalDataClass`1"
.Reproduction Steps
App Repro Steps:
1.Copy DotNetCore/AppSource/SourceShare/PresentationThemeAero to your local machine .
2.Open "
PresentationThemeAero\App\PresentationThemeAero\ThemeBrowser.runtimeconfig.json
" file .3.Change the "
ThemeBrowser.runtimeconfig.json
" file to let the app run against withdotnet-sdk-10.0.100-alpha.1.25057.15.
Expected Result:
Launch successfully.
Actual Result:
Launch failed with error: "
ThemeManager is not operational.
"Minimal Repro steps (Demo attached: WpfDemo.zip):
Expected behavior
Launch successfully.
Actual behavior
Throw custom error: "
Test is not operational.
, becauseWindowsBase.GetType("MS.Internal.SecurityCriticalDataClass`1") is null
.Regression?
Yes
Verify Scenarios:
1). Windows 10 22H2 AMD64 + dotnet-sdk-9.0.102: Pass
2). Windows 10 22H2 AMD64 + dotnet-sdk-10.0.100-alpha.1.25057.15: Fail
Known Workarounds
No response
Impact
No response
Configuration
Application Name: PresentationThemeAero
OS: Windows 10 22H2
CPU: X64
.NET Build Number: dotnet-sdk-10.0.100-alpha.1.25057.15
App & Source Location checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2335115
Github Link: https://github.com/gix/PresentationTheme.Aero
Dotnet info:
Other information
@dotnet-actwx-bot @dotnet/compat
The text was updated successfully, but these errors were encountered: