我在我的ASP.NET MVC 4应用程序中使用.net 4.0添加了以下引用。
我还将该命名空间包含在我的应用程序中,但是仍然看到以下错误:
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".