0

我正在尝试从 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 处理 PATH 为 dnx-coreclr-win-x86.1.0.0-beta8 编译原生镜像以提高启动性能...

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

全局.json:

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

项目.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"
  ]
}

为什么会这样?

4

2 回答 2

1

更新sdkglobal.json喜欢这个示例中的部分:

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

你会瞄准1.0.0-rc1-update1

于 2015-12-10T08:00:20.200 回答
0

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

于 2015-12-10T16:59:53.787 回答