开发者

Enterprise Library 4.1 and .Net4

开发者 https://www.devze.com 2022-12-27 11:00 出处:网络
I have a project that uses the 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.Se

I have a project that uses the 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 a .net3 project? Or, does somebody have a workaround for this issue?

I am using the RTM version of VS2010

Thanks


Some references in the csproj file (e.g. System.ServiceModel in ExceptionHandling.WCF project) have the SpecificVersion property set to True.

You can right click on this reference and choose 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 reference

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号