gpt4 book ai didi

c# - 命名空间 'TeamFoundation' 中不存在类型或命名空间名称 'Microsoft'

转载 作者:可可西里 更新时间:2023-11-01 08:39:37 25 4
gpt4 key购买 nike

我在使用 .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". 

最佳答案

您正试图在低版本项目 (.net 4.0) 中引用高版本 dll(.net 4.5) )。

升级您的项目到.net 4.5 或引用.net 4.0 版本dll。

关于c# - 命名空间 'TeamFoundation' 中不存在类型或命名空间名称 'Microsoft',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26981124/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com