Referenced Assembly could not be resolved because it has a dependency conflict 解决方法

今天用VS2010做一个窗体的时候出现

Warning 39 The referenced assembly "SQLDAL" could not be resolved because it has a dependency on "System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. KSXTClient
问题出来,打开项目属性,恶作剧原来在此啊,

Referenced Assembly could not be resolved because it has a dependency conflict 解决方法_第1张图片

晕啊,自作多情,干嘛新建项目的时候要自动选择.net framework 4 client profile。

重新选择.net framework 4.问题解决。

 

关于.net framework 4 client profile:

为改进.NET Framework 4部署的大小,时间和总的体验,VS 2010提供了一个更精简的 .NET 版本,是完整的.NET Framework 4 的一个子集,叫做.NET Framework 4 Client Profile。.NET Framework 4 Client Profile目前可重分发的大小是30MB左右,完整的Microsoft .NET Framework 4是Client Profile的纯超集(superset)。

你可能感兴趣的:(c,.net,Microsoft,assembly,2010,conflict)