Red Gate forums :: View topic - SmartAssembly on PostSharp
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 5
SmartAssembly 5 forum

SmartAssembly on PostSharp

Search in SmartAssembly 5 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
rcd.guerra



Joined: 13 Sep 2010
Posts: 10

PostPosted: Sat Sep 18, 2010 12:14 am    Post subject: SmartAssembly on PostSharp Reply with quote

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
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6667

PostPosted: Mon Sep 20, 2010 9:55 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group