Closed JVimes closed 2 years ago
Hello, I am having the same problem. Did you find a solution for this?
Not yet, no time for this project at the moment.
Any news on this issue? Here is a simple repo: https://github.com/C1rdec/MaterialDesignStrongName
Official release: https://www.nuget.org/packages/Brutal.Dev.StrongNameSigner/3.1.0
I think I found an assembly reference that's not being rewritten by StrongNameSigner, and I may know where it is.
Repro steps:
xmlns
value assumes the above DLL and it's .NET namespace areWpfCustomControlLibrary1
, so doctor it if necessary):Expected: The application runs. Actual: It throws an exception, "FileLoadException: Could not load file or assembly 'WpfCustomControlLibrary1, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)".
I may know where the un-rewritten reference is. I think it's an assembly self-reference in WpfCustomControlLibrary1.dll. That DLL contains a "generic.baml" resource (compiled from themes\generic.xaml in the project), and when I view it with dnSpy, there is a reference to the baml's own DLL, but with a null PublicKeyToken. I had to enable dnSpy's option: "View > Options > BAML decompiler > Disassemble BAML" to see the PublicKeyToken.
Edit: Looks like normal references (across assemblies) also aren't rewritten in XAML/BAML. Guessing XAML isn't yet supported.