I have to stop using PostSharp because it will not work with ambiguous / merged assemblies. At least, I do not see any way to do this work (it crashes when Apple starts) when the assemblies are ambiguous.
I have to stop some methods in my app (Basic methods Call Special Code instead - OnMethodInvocationAspect)
Any advice?
PostShop supports ILMerge to some extent. But there are problems with obfuscated assemblies
-
As the facets are sorted in time of construction, they can not be deserialized if the aspect type has been obfuscated. The solution is not to remove any serial type. Another solution is not to serialize the aspects (see AspectConfigurationAttribute.SerializerType PostSharp 2.0, and use serializer MsilAspectSerializer.)
-
There are problems when applied to normal methods and methods The normal type (The reason is that PostSharp uses reflection, based on method names, in this case, CLR to work around insects).
-gael
No comments:
Post a Comment