DNX beta8在打开解决方案

时间:2015-12-10 06:46:57

标签: visual-studio-2015 asp.net-core dnx kestrel-http-server

我正在尝试从ASP.NET 5 beta8更新到RC1。

我的项目中没有引用beta8,但在打开我的解决方案时,我在Visual Studio的DNVM控制台中看到以下情况:

  

安装到C:\ Users \ me.dnx \ runtimes \ dnx-clr-win-x86.1.0.0-beta8   添加C:\ Users \ me.dnx \ runtimes \ dnx-clr-win-x86.1.0.0-beta8 \ bin到   进程PATH安装到   C:\ Users \ me.dnx \ runtimes \ dnx-coreclr-win-x86.1.0.0-beta8添加   C:\ Users \ me.dnx \ runtimes \ dnx-coreclr-win-x86.1.0.0-beta8 \ bin to   进程PATH编译本机映像   dnx-coreclr-win-x86.1.0.0-beta8改善启动性能......

我关闭Visual Studio,卸载所有beta8运行时版本,删除packages文件夹,但这仍然会发生。

global.json:

{
  "projects": [ "src", "test", "." ],
  "sdk": {
      "version": "1.0.0-rc1-update1",
      "runtime": "clr",
      "architecture": "x86"
  }
}

project.json:

{
  "title": "MyProject.Api",
  "webroot": "wwwroot",
  "version": "1.0.0-*",
  "dependencies": {
    "Microsoft.ApplicationInsights.AspNet": "1.0.0-rc1",
    "Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
    "Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
    "Microsoft.AspNet.Diagnostics": "1.0.0-rc1-final",
    "Microsoft.AspNet.Authorization": "1.0.0-rc1-final",
    "Microsoft.AspNet.Mvc.Core": "6.0.0-rc1-final",
    "Microsoft.AspNet.Mvc.Abstractions": "6.0.0-rc1-final",
    "Microsoft.AspNet.Authentication.JwtBearer": "1.0.0-rc1-final",
    "Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc1-final",
    "Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
    "Microsoft.Extensions.Logging": "1.0.0-rc1-final",
    "Microsoft.Extensions.Logging.Abstractions": "1.0.0-rc1-final",
    "Microsoft.Extensions.Configuration": "1.0.0-rc1-final",
    "Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
    "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc1-final",
    "Newtonsoft.Json": "6.0.6",
    "WindowsAzure.Storage": "5.0.2"
  },
  "commands": {
    "web": "Microsoft.AspNet.Server.Kestrel",
  },
  "frameworks": {
    "dnx451": { }
  },
  "publishExclude": [
    "node_modules",
    "bower_components",
    "**.xproj",
    "**.user",
    "**.vspscc"
  ],
  "exclude": [
    "wwwroot",
    "node_modules",
    "bower_components"
  ]
}

为什么会这样?

2 个答案:

答案 0 :(得分:1)

更新sdk中的global.json部分,如下例所示:

{
    "projects": [
        "src",
        "test"
    ],
    "sdk": {
        "version": "1.0.0-rc1-update1"
    }
}

您将定位1.0.0-rc1-update1

答案 1 :(得分:0)

这是设计的。工具始终安装嵌入其中的运行时版本。它不会影响您的应用程序,您仍然可以更改版本并执行任何操作。