简体   繁体   English

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

[英]The type or namespace name 'TeamFoundation' does not exist in the namespace 'Microsoft'

I added the following reference to my ASP.NET MVC 4 application using .net 4.0. 我使用.net 4.0添加了以下对我的ASP.NET MVC 4应用程序的引用。

I also included the namespace in my Application , but still I see the following error : 我还在我的应用程序中包含了命名空间,但我仍然看到以下错误:

 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' "

I have another console application and I didnt see this error while using the reference in that application . 我有另一个控制台应用程序,我在该应用程序中使用引用时没有看到此错误。 Is there something different I need to do for a Web/MVC application ? 我需要为Web / MVC应用程序做些什么不同的事情吗? Please let me know . 请告诉我 。

There is also this warning I see : 我也看到了这个警告:

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". 

You are trying to reference a higher version dll( .net 4.5 ) in a lower version project ( .net 4.0 ). 您正尝试在较低版本的项目.net 4.0 )中引用更高版本的 DLL( .net 4.5 )。

Either upgrade your project to .net 4.5 or reference the .net 4.0 version dll. 项目升级.net 4.5或引用.net 4.0版本dll。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误18类型或名称空间名称'TeamFoundation'在名称空间'Microsoft'中不存在(您是否缺少程序集引用?) - Error 18 The type or namespace name 'TeamFoundation' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) 命名空间“Microsoft.VisualBasic”中不存在类型或命名空间名称“FileIO” - The type or namespace name 'FileIO' does not exist in the namespace 'Microsoft.VisualBasic' 类型或名称空间名称“ DirectX”在名称空间“ Microsoft” Windows 8.1中不存在 - The type or namespace name 'DirectX' does not exist in the namespace 'Microsoft' Windows 8.1 命名空间“Microsoft”中不存在类型或命名空间名称“设备” - The type or namespace name 'Devices' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“Bot”? - The type or namespace name 'Bot' does not exist in the namespace 'Microsoft'? 类型或名称空间名称“ FriendlyUrls”在名称空间“ Microsoft.AspNet”中不存在 - The type or namespace name 'FriendlyUrls' does not exist in the namespace 'Microsoft.AspNet' 命名空间“Microsoft”中不存在类型或命名空间名称“Reporting” - The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“Azure” - The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“ServiceBus”? - The type or namespace name 'ServiceBus' does not exist in the namespace 'Microsoft'? 类型或名称空间名称“ Lync”在名称空间“ Microsoft”中不存在 - The type or namespace name 'Lync' does not exist in the namespace 'Microsoft'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM