dotPeek fails to load Fluent XAML from .NET 9 preview
I am attempting to look into the implementation of the new fluent XAML styling in the latest .NET 9 preview build. However, dotPeek fails to load/parse the baml in PresentationFramework.Fluent.
Specifically, if I attempt to open Resources > styles > listview.baml I see the following error in the Stack Trace pane:
I see similar errors for all the items under styles. To see this for yourself, install the latest .NET SDK preview from here (https://dotnet.microsoft.com/en-us/download/dotnet/9.0) , open that assembly and attempt to decompile anything under the styles folder.
Does anyone have advice on how I can see the XAML from those styles? Ideally, I'd like to use dotPeek as the MS WPF github source doesn't seem to have this source available.
| :1 | Error decompiling baml file 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.0-preview.7.24405.2\PresentationFramework.Fluent.dll\styles/listview.baml': Property with id=272 is not predefined BAML property
--- EXCEPTION #1/2 [InvalidOperationException]
Message = “Property with id=272 is not predefined BAML propertyâ€
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
Data.ThreadLocalDebugInfo = TreeGridBrowserPanel.Navigate
HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.Platform.Metadata
StackTraceString = “
at JetBrains.Metadata.Baml.Reader.BamlKnownTypes.GetPropertyInfo(Int16 propertyId) in GetPropertyInfo.il:line IL_0025 mvid 7455
at JetBrains.Metadata.Baml.Reader.MetadataBamlPredefinedProvider.GetPropertyInfo(Int16 propertyId) in GetPropertyInfo.il:line IL_0007 mvid 7455
at JetBrains.Metadata.Baml.Reader.BamlReader.ReadPropertyWithConverter() in ReadPropertyWithConverter.il:line IL_0018 mvid 7455
at JetBrains.Metadata.Baml.Reader.BamlReader.Read() in Read.il:line IL_0247 mvid 7455
at JetBrains.Decompiler.Baml.BamlDecompiler.Decompile(Stream stream, ITypeSystemHelper typeSystemHelper, BamlPredefinedProvider predefinedProvider, INamespaceMappingProvider mappingProvider) in Decompile.il:line IL_000F mvid 815A
at JetBrains.ReSharper.ExternalSources.AssemblyExplorer.Navigation.NetResourceNavigationProviderBase.<>c__DisplayClass3_0.<NavigateToBaml>b__0(Lifetime lifetime) in NetResourceNavigationProviderBase.il:line IL_006B mvid 4183
â€
Please sign in to leave a comment.