日期:2014-05-20 浏览次数:20798 次
编译的时候报以下问题:??
?
The referenced assembly "idautomation.linearservercontrol" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 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.?
?
???? 注意项目的properties里面的Target framework是完整版的,还是client profile的。在目标框架中默认选项是“.NET Framework 4 Client Profile”,Client Profile是.NET Framework框架的子集,目标是为快速发布。将其修改为“.NET Framework 4.0”,然后再导入System.Web.dll 编译即可。