Skip to content

Failed to launch ThemeBrowser with error System.Windows.Threading.Dispatcher cannot find type "MS.Internal.SecurityCriticalDataClass`1" in PresentationThemeAero #9

@CancanTang

Description

@CancanTang

Describe the bug
When run the application with the latest .NET 10 build, it failed with custom error: System.Windows.Threading.Dispatcher cannot find type "MS.Internal.SecurityCriticalDataClass1" in PresentationThemeAero`.

Steps to reproduce the behavior:

  1. Build the PresentationThemeAero .

  2. Open "PresentationThemeAero\App\PresentationThemeAero\ThemeBrowser.runtimeconfig.json" file

  3. Change the "ThemeBrowser.runtimeconfig.json" file to let the app run against with dotnet-sdk-10.0.100-alpha.1.25057.15.

"framework": {
      "name": "Microsoft.WindowsDesktop.App",
      "version": "10.0.0-alpha.1.25056.2"
    }
  1. Run the ”PresentationThemeAero\App\PresentationThemeAero\ThemeBrowser.exe”.

Expected behavior
Page launch successfully without error.

Actual behavior
Launch failed with error: "ThemeManager is not operational."

Please refer to more information at dotnet/wpf#10256

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions