icsharpcode/ILSpy — Issue #298: Unable to view baml files in WF4 dll's resources
Author: rebulanyum
Created: 2011-12-06 19:44:12+00:00
State: open

I can not view the baml files in System.Activities.Core.Presentation.dll's resources. Especially, the ones that are ActivityDesigner's. An example resource key for your trial is "system/activities/core/presentation/ifelsedesigner.baml".

When I try to view the baml resource it's giving me the following exception text:

System.NotSupportedException: Type 'System.Activities.Presentation.ActivityDesigner, System.Activities.Presentation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' not found!
at Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.GetKnownTypeDeclarationByName(String name)
at Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ReadElementStart()
at Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ProcessNext()
at Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ReadInternal()
at Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.Read()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at ILSpy.BamlDecompiler.BamlResourceEntryNode.LoadIntoDocument(IAssemblyResolver resolver, AssemblyDefinition asm, Stream stream)
at ILSpy.BamlDecompiler.BamlResourceEntryNode.LoadBaml(AvalonEditTextOutput output)
at ILSpy.BamlDecompiler.BamlResourceEntryNode.<>c__DisplayClass3.b__1()

However, System.Activities.Presentation.dll was already included in ILSpy and it is resolved successfully.