Using [DoNotPruneType()] dont work on inherited types

.NET obfuscator and automated error reporting

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

Using [DoNotPruneType()] dont work on inherited types

Postby Lector » Wed Jun 16, 2010 4:05 pm

Hello,

We are developing a WPF-Application using .NET Framework 3.5 SP1. Using XAML we have the problem that SmartAssembly sometimes prunes some Properties that are only used by XAML because those dependencies cant be detected.
One possibility to avoid this problem is to use the [DoNotPrune()] or [DoNotPruneType()]-Attribute on Classes that are used by XAML. This works fine.
But 95% of our classes, that are used by XAML, are inherited from a speacial Base-Class i thought it would make sense to just add the [DoNotPruneType()]-Attribute to this base-class to prohibit Pruning on all the subclasses. Inheriting this property works very well and i can also read this property out of the inherited classes but SmartAssembly dont detect the [DoNotPruneType()]-Attribute on inherited Types.

It would be great if there would be a way to activate this property also on inherited types. I dont want to write this attribute to any single class because we have ~100 classes in our project that derive from your special XAML-compatible class.

We are using SmartAssembly v4.2.5.

Thanks,

Lector
Lector
 
Posts: 1
Joined: Wed Jun 16, 2010 3:34 pm

Postby slaphead99 » Thu Jun 17, 2010 12:49 pm

OK, thanks for that - I'll add this as a feature request.
slaphead99
 
Posts: 92
Joined: Wed Mar 10, 2010 2:27 pm

Postby slaphead99 » Thu Jun 17, 2010 12:54 pm

This is feature request SA-24. Fingers crossed :)
slaphead99
 
Posts: 92
Joined: Wed Mar 10, 2010 2:27 pm


Return to SmartAssembly 5

Who is online

Users browsing this forum: No registered users and 0 guests