Enterprise Library 4.1 and .Net4

I have a project that uses Enterprise Library 4.1. When I target .net 4 and compile, I get an error that says I need to add a reference to System.ServiceModel version 3. My reference is to System.ServiceModel version 4. How can I tell Visual Studio 2010 to reference a. net3 assembly from .net3 project? Or does anyone have a workaround for this problem?

I am using RTM version of VS2010

thanks

+2


a source to share


1 answer


Some references in the csproj file (for example, System.ServiceModel in the ExceptionHandling.WCF project) have a SpecificVersion property set to True.



You can right click on this link and select Properties and change this value to False. Alternatively, you can edit the csproj file in notepad and change <SpecificVersion>True</SpecificVersion> to <SpecificVersion>False</SpecificVersion>

for this link

+1


a source







All Articles