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 (2.1.7.17 and 2.1.7.18) 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 2.1.7.16.

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 2.1.7.16

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


1 comment: