Unity 2.0 + CodeContracts

Topics: General discussion
Aug 16, 2010 at 6:56 AM
Hi I'm testing with unity 2.0.414.0 and CodeContracts 1.4.30707.2 with VS2010. in .NET 4.0 ClientProfile environment. When I compile any project with this constellation I got compiling errors: Could not resolve type reference: [Microsoft.Practices.Unity]Microsoft.Practices.Unity.ResolverOverride. Could not resolve type reference: [Microsoft.Practices.Unity]Microsoft.Practices.Unity.UnityContainerExtensions. Bad method type parameter in position 0. Could not resolve member reference: Microsoft.Practices.Unity.UnityContainerExtensions::Resolve. Any hint, whats the cause for this exception ? Are there known issues with CodeContracts and unity 2.0 ?
Aug 16, 2010 at 7:33 AM


I recommend posting this in the unity forum. You can get better answer there particularly with regards to unity.

Gino Terrado
Global Technology and Solutions
Avanade, Inc.