VS2015 ASP.NET 5 beta7依赖无法解决

Jos*_*osh 2 dnx asp.net-core

这是这个问题的后续行动.我开始在VS2015社区中使用一个Empty ASP.NET项目,试图根据一个教程添加几个包,但还没有实际工作.链接问题中的初始问题是由于某些项目依赖性使用beta5和一些使用beta7.匹配这些解决了,但现在我尝试在IIS Express中运行项目时出现此错误:

Could not load file or assembly 'Microsoft.Dnx.Host.Clr' or one of its  dependencies.
Run Code Online (Sandbox Code Playgroud)

我认为这个问题仍然与版本相关 - 就像之前的web.config程序集引用问题一样 - 但我还不知道如何处理它.我尝试global.json根据我在GitHub上发现的类似问题进行修改,但现在它没有构建.它看起来似乎无法找到更新版本的CLR.从VS2015中的错误列表:

The dependency Microsoft.AspNet.Mvc >= 6.0.0-beta7 could not be resolved.
The dependency Microsoft.AspNet.Server.IIS >= 1.0.0-beta7 could not be resolved.
The dependency Microsoft.AspNet.Server.WebListener >= 1.0.0-beta7 could not be resolved.
Run Code Online (Sandbox Code Playgroud)

global.json:

{
  "projects": [ "src", "test" ],
  "sdk": {
    "version": "1.0.0-beta7",
    "runtime": "clr",
    "architecture": "x86"
  }
}
Run Code Online (Sandbox Code Playgroud)

我的项目的References树有黄色错误指示器,但在NuGet包管理器中查找我的项目并没有显示任何升级(或根据我的意思,根本没有安装任何升级).

dnvm list:

     1.0.0-beta5       clr     x64
     1.0.0-beta5       clr     x86
     1.0.0-beta5       coreclr x64
     1.0.0-beta5       coreclr x86
*    1.0.0-beta7       clr     x86  default
     1.0.0-beta8-15585 clr     x86
Run Code Online (Sandbox Code Playgroud)

dnu list:

Microsoft .NET Development Utility CLR-x86-1.0.0-beta7-15532
Run Code Online (Sandbox Code Playgroud)

我重新开始VS,但这没有帮助.更改回beta5我的功能global.json使其成功编译但后来我收到IIS错误.

project.json:

{
    "webroot": "public",
    "version": "1.0.0-*",

    "dependencies": {
        "Microsoft.AspNet.Mvc": "6.0.0-beta7",
        "Microsoft.AspNet.Server.IIS": "1.0.0-beta7",
        "Microsoft.AspNet.Server.WebListener": "1.0.0-beta7"
    },

    "commands": {
        "web": "Microsoft.AspNet.Hosting --config hosting.ini"
        },

    "frameworks": {
        "dnx451": { },
        "dnxcore50": { }
    },

    "publishExclude": [
        "node_modules",
        "bower_components",
        "**.xproj",
        "**.user",
        "**.vspscc"
    ],

    "exclude": [
        "public",
        "node_modules",
        "bower_components"
    ]
}
Run Code Online (Sandbox Code Playgroud)

package.json:

{
    "version": "1.0.0",
    "name": "ASP.NET",
    "private": true,
    "devDependencies": {
        "angular2": "2.0.0-alpha.36",
        "gulp": "3.9.0"
    }
}
Run Code Online (Sandbox Code Playgroud)

小智 5

"要在Visual Studio 2015中使用ASP.NET 5 beta7,您需要下载并安装ASP.NET和Web Tools 2015的beta7版本(14.0.60831.0)."

http://go.microsoft.com/fwlink/?LinkId=623894

https://github.com/aspnet/Home/releases