using Microsoft.Owin;
在添加行时无法编译项目Startup.cs
。VS 抛出错误:
ASP.NET Core 5.0 error CS0234: The type or namespace name 'Owin' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
这是我的project.json
文件:
{
"webroot": "wwwroot",
"version": "1.0.0-*",
"dependencies": {
"Microsoft.AspNet.Mvc": "6.0.0-beta3",
"Microsoft.AspNet.Server.IIS": "1.0.0-beta3",
"Microsoft.Owin": "3.0.1",
"Microsoft.Owin.Security": "3.0.1",
"Microsoft.Owin.Security.OAuth": "3.0.1",
"Microsoft.Owin.Security.Cookies": "3.0.1"
},
"frameworks": {
"aspnetcore50": {}
},
"bundleExclude": [
"node_modules",
"bower_components",
"**.kproj",
"**.user",
"**.vspscc"
],
"exclude": [
"wwwroot",
"node_modules",
"bower_components"
]
}
我错过了什么吗?
先决条件:Visual Studio 2015 CTP 版本 14.0.22609.0 D14REL,空 ASP.NET 5 预览模板