zl程序教程

您现在的位置是:首页 >  其他

当前栏目

命名空间“HaiChuang.AMAC”中不存在类型或命名空间名称“WCFClient”。是否缺少程序集引用?

程序 类型 是否 空间 引用 存在 命名 名称
2023-09-14 09:02:10 时间
经过确认引用的dll没有问题,把引用重新添加过来,重启Visual Studio 2010都没有效果。 错误一直都在,一直都在!!! 后来发现该工程所引用的dll是net framework 4.0生成的。 而该工程是.Net Framework 4.0 Client Profile生成的,如下: 修改该工程的目

今天在Visual Studio 2010中编译文件的时候报出了以下错误:


经过确认引用的dll没有问题,把引用重新添加过来,重启Visual Studio 2010都没有效果大哭

错误一直都在,一直都在!!!

后来发现该工程所引用的dll是net framework 4.0生成的。


而该工程是.Net Framework 4.0 Client Profile生成的,如下:


修改该工程的目标框架为net framework 4.0,再次编译,搞定。


C#特性 System.ComponentModel命名名空间属性方法大全,Syst em.ComponentModel命名空间的特性 System.ComponentModel 特性命名空间与常用类 System.ComponentModel.DataAnnotations ComponentModel - Classes 类 ComponentModel - Structs 结构体 ComponentModel - Interfaces 界面 ComponentModel - Enums 枚举 ComponentModel - Delegates 委托