SmartAssembly on PostSharp

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, Alex.Davies, melvyn.harbour

SmartAssembly on PostSharp

Postby rcd.guerra » Sat Sep 18, 2010 12:14 am

Hi there,

we are using PostSharp mainly for AOP which means that our assemblies are generated by PostSharp after/during the normal build process.

In the end, we are applying obfuscation on top on PostSharp'ed assemblies.

This is resulting in some TypeInitializationException's when a type is being resolved.

As anyone tried using SmartAssembly with PostSharp ?

Thanks in advance!

Kind regards,
Ricardo
rcd.guerra
 
Posts: 10
Joined: Mon Sep 13, 2010 5:43 pm

Postby Brian Donahue » Mon Sep 20, 2010 9:55 am

Hi Ricardo,

I'm sorry to see that nobody has chimed in on this question. Unfortunately we do not use PostSharp at Red Gate, so I don't have any specific advice for that. However, I would assume that since PostSharp makes heavy use of attributes, it is going to potentially be affected by pruning and/or obfuscation which is going to scramble the assembly metadata.

It may be that you simply have to exclude these classes that throw a typeinitializationexception, first from pruning, and if that doesn't help, from obfuscation.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am


Return to SmartAssembly 5

Who is online

Users browsing this forum: No registered users and 0 guests