| Author |
Message |
Lector
Joined: 16 Jun 2010 Posts: 1
|
Posted: Wed Jun 16, 2010 4:05 pm Post subject: Using [DoNotPruneType()] dont work on inherited types |
|
|
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 |
|
| Back to top |
|
 |
slaphead99
Joined: 10 Mar 2010 Posts: 93
|
Posted: Thu Jun 17, 2010 12:49 pm Post subject: |
|
|
| OK, thanks for that - I'll add this as a feature request. |
|
| Back to top |
|
 |
slaphead99
Joined: 10 Mar 2010 Posts: 93
|
Posted: Thu Jun 17, 2010 12:54 pm Post subject: |
|
|
This is feature request SA-24. Fingers crossed  |
|
| Back to top |
|
 |
|
|
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