加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – 命名空间“Microsoft”中不存在类型或命名空间名称“TeamF

发布时间:2020-12-15 18:27:14 所属栏目:百科 来源:网络整理
导读:我添加以下引用到我的ASP.NET MVC 4应用程序使用.net 4.0. 我还在我的应用程序中包含命名空间,但是我仍然看到以下错误: Reference : Microsoft.TeamFoundation.Client.dllC:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEReferenceAssemb
我添加以下引用到我的ASP.NET MVC 4应用程序使用.net 4.0.

我还在我的应用程序中包含命名空间,但是我仍然看到以下错误:

Reference : Microsoft.TeamFoundation.Client.dll
C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEReferenceAssembliesv2.0Microsoft.TeamFoundation.Client.dll

   "The type or namespace name 'TeamFoundation' does not exist in the namespace 'Microsoft' "

我有另一个控制台应用程序,我没有看到这个错误,而在该应用程序中使用引用.有没有什么不同我需要做一个Web / MVC应用程序?
请告诉我 .

还有我看到的这个警告:

Warning 1   The primary reference "Microsoft.TeamFoundation.Client,Version=12.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a,processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".

解决方法

您尝试在较低版本的项目(.net 4.0)中引用更高版本的dll(.net 4.5).

将您的项目升级到.net 4.5或参考.net 4.0版本的dll.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读