Struggling to use SmartAssembly with Silverlight XAPs
The architecture of the files is as follows (PRISM style):
There is a shell module XAP that also includes all the dependencies of the application, including an infrastructure DLL and a framework DLL (which is code shared with the server application).
There is also a XAP for each application module (currently 6), these do not include any dependencies.
I can get the shell XAP obfuscated pretty well, the only change I needed to make was to exclude views that were loaded directly via reflection, which is fine.
However, I also need to obfuscate the infrastructure and framework DLLs that are in this XAP as well. As soon as I merged the DLLs, without any other processing, the application crashes to the white screen of death immediately after loading.
I simply can't progress here because I have no idea what's failing - the codebase I'm working with is huge so I can't just randomly exclude things from obfuscation and hope for the best.
Is there any way that I can diagnose what is causing the application to break?
The other alternative I'm going to try is a separate SA project for each assembly, then use the embed dependencies option instead of merging, so that I can still get the assemblies obfuscated.
Any advice appreciated - at this stage it's not looking like we will be able to use this product.