【发布时间】:2016-07-02 08:57:49
【问题描述】:
如何在我的 ASP 5 应用程序中添加 Microsoft.TeamFoundation.Client 库?该库仅受 dnx 4.5.1 支持,而 dnx 5.0 不支持。
当我尝试构建我的应用程序时,我收到以下错误 -
CS0234 The type or namespace name 'TeamFoundation' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?
当我通过将鼠标悬停在 using TeamFoundation 语句上进一步深入研究时,我收到以下消息:
{} Namespace Microsoft.TeamFoundation
MyProject.DNX 4.5.1 - Available
MyProject.DNX Core 5.0 - Not Available
You can use the navigation bar to switch context.
如何使用导航栏切换上下文?
如何使用我的 ASP 5 应用程序定位 dot net 版本 4.5.1?
谢谢!第一次问!
我的 Project.JSON 文件 -
{
"version": "1.0.0-*",
"compilationOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
"Microsoft.AspNet.Mvc.Core": "6.0.0-rc1-final",
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final",
"Microsoft.AspNet.Mvc.ViewFeatures": "6.0.0-rc1-final",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
"Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration": "1.0.0-rc1-final",
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc1-final"
},
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel"
},
"frameworks": {
"dnx451": {
"dependencies": {
"Microsoft.TeamFoundationServer.ExtendedClient": "14.89.0",
"Microsoft.WindowsAzure.ConfigurationManager": "3.2.1"
},
"frameworkAssemblies": {
"System.Activities": "4.0.0.0"
}
},
"dnxcore50": { }
},
"exclude": [
"wwwroot",
"node_modules"
],
"publishExclude": [
"**.user",
"**.vspscc"
]
}
【问题讨论】:
-
你能给我们看看你的 project.json 吗?
-
刚刚添加了截图。
-
为什么要截屏?
-
我应该添加一个完整的代码文件吗?我很抱歉,但我是新手 :( 和编码 :(
-
将其添加为代码。干杯
标签: asp.net-mvc asp.net-core asp.net-core-mvc .net-core asp.net-core-1.0