-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Description
When I build an app containing the following XAML with 9.0.0-preview.7, it's compiled into an unreadable BAML:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="DefaultAccessTextStyle" TargetType="{x:Type AccessText}">
<Setter Property="Background" Value="Transparent" />
<Setter Property="FontSize" Value="14" />
<Setter Property="Margin" Value="0" />
<Setter Property="Focusable" Value="False" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="OverridesDefaultStyle" Value="True" />
</Style>
<Style
x:Key="{x:Type AccessText}"
BasedOn="{StaticResource DefaultAccessTextStyle}"
TargetType="{x:Type AccessText}" />
</ResourceDictionary>Reproduction Steps
Build and run the attached project:
Expected behavior
Windows is shown:
Actual behavior
Exception is thrown:
Regression?
This has worked with NET 8.0.
Known Workarounds
No response
Impact
Cannot build with .NET 9.0.0-preview.7.
Configuration
No response
Other information
No response
Metadata
Metadata
Assignees
Labels
No labels


