- .NET Core Version: 6.0.0-preview.4.21253.7
- Windows version: Windows 10 (Build 19043.1023)
- Does the bug reproduce also in WPF for .NET Framework 4.8?: No
- Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? No.
Problem description:
When <PublishReadyToRunComposite> is set to true, the WPF app would crash when trying to call something from System.Windows.Media.FontFamily.
Actual behavior:
The app crashes at startup.
Expected behavior:
The app starts normally.
Minimal repro:
- Create a simple WPF app (with a bit of text and buttons).
- Add
<PublishReadyToRunComposite> and <PublishReadyToRun> to the csproj file and set it to true.
dotnet publish -c Release -r win-x64 (may occur in win-x86, but I haven't tested).
Problem description:
When
<PublishReadyToRunComposite>is set to true, the WPF app would crash when trying to call something fromSystem.Windows.Media.FontFamily.Actual behavior:
The app crashes at startup.
Expected behavior:
The app starts normally.
Minimal repro:
<PublishReadyToRunComposite>and<PublishReadyToRun>to the csproj file and set it to true.dotnet publish -c Release -r win-x64(may occur in win-x86, but I haven't tested).