ASP.NET vNext项目参考

Ale*_*der 5 .net-core asp.net-core

有人知道如何project referenceASP.NETvNext中添加吗?

project.json

{
    "dependencies": {
        "myProject":  ""
    },
    "configurations" : {
        "net45" : { },
        "k10" : { }
    }
}
Run Code Online (Sandbox Code Playgroud)

它不起作用:(

Ale*_*der 3

我找到了解决方案。

  1. 您只能使用 ASP.NET vNext 项目(我尝试使用“类库”,但它仅适用于“ASP.NET vNext 类库”

  2. 您应该使用 global.json 来声明您的文件夹。