News, examples, tips, ideas and plans.
Thoughts around ORM, .NET and SQL databases.

Monday, October 08, 2012

Issues with recent PostSharp

Recent versions of PostSharp ( and does not work well with DataObjects.Net. If you installed DataObjects.Net from NuGet and get the following error when compiling:

Error in MulticastAttributeUsage applied on type 'Xtensive.Orm.PersistentAspect': attribute inheritance is not supported on properties and events.

you should downgrade your PostSharp to version

To do this open package manager console (Tools ->Library package manager -> Package Manager Console) and execute the following commands:

> Uninstall-Package PostSharp -Force
> Install-Package PostSharp -Version

Recently released DataObjects.Net 4.5.5 and 4.6.0 explicitly set maximal supported version of PostSharp to so you will not get this error when using them.

No comments:

Post a Comment