命名空间"Microsoft"中不存在类型或命名空间名称"TeamFoundation"

 weibophp 发布于 2022-12-10 19:59

我使用.net 4.0添加了以下对我的ASP.NET MVC 4应用程序的引用.

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

 Reference : Microsoft.TeamFoundation.Client.dll
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v2.0\Microsoft.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". 

Amir Popovic.. 18

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

无论是升级您的项目.net 4.5或引用的.net 4.0DLL版本.

1 个回答
  • 您正尝试在较低版本的项目()中引用更高版本的 dll ()..net 4.5.net 4.0

    无论是升级您的项目.net 4.5或引用的.net 4.0DLL版本.

    2022-12-11 03:12 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有