简体   繁体   English

面向完整框架的ASP.NET Core 1.1无法部署到Azure App Service

[英]ASP.NET Core 1.1 targeting full framework can not be deployed to Azure App Service

I used the ASP.NETCore 1.0.1 Web App template and attempted to upgrade it ASP.NET Core 1.1.0 using full framework. 我使用了ASP.NETCore 1.0.1 Web App模板,并尝试使用完整框架将其升级为ASP.NET Core 1.1.0。 The app runs fine when run locally, but when I attempt to deploy it to Azure I receive the following (See image below). 该应用程序在本地运行时运行良好,但是当我尝试将其部署到Azure时,我收到以下信息(请参见下图)。 The project.json changes are included as well below. project.json的更改也包括在下面。 Are full framework version of 1.1 supported in Azure yet? Azure是否支持1.1的完整框架版本? Is there any workaround to getting this type of app working? 是否有解决此类型应用程序的方法?

{
  "dependencies": {
    "Microsoft.AspNetCore.AzureAppServicesIntegration": "1.0.0",
    "Microsoft.ApplicationInsights.AspNetCore": "1.0.2",
    "Microsoft.AspNetCore.Diagnostics": "1.1.0",
    "Microsoft.AspNetCore.Mvc": "1.1.0",
    "Microsoft.AspNetCore.Razor.Tools": {
      "version": "1.0.0-preview2-final",
      "type": "build"
    },
    "Microsoft.AspNetCore.Routing": "1.1.0",
    "Microsoft.AspNetCore.Server.IISIntegration": "1.1.0",
    "Microsoft.AspNetCore.Server.Kestrel": "1.1.0",
    "Microsoft.AspNetCore.StaticFiles": "1.1.0",
    "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0",
    "Microsoft.Extensions.Configuration.Json": "1.1.0",
    "Microsoft.Extensions.Logging": "1.1.0",
    "Microsoft.Extensions.Logging.Console": "1.1.0",
    "Microsoft.Extensions.Logging.Debug": "1.1.0",
    "Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0",
    "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0"
  },

  "tools": {
    "BundlerMinifier.Core": "2.0.238",
    "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final",
    "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
  },

  "frameworks": {
    "net46": {
    }
  },

  "buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true
  },

  "runtimeOptions": {
    "configProperties": {
      "System.GC.Server": true
    }
  },

  "publishOptions": {
    "include": [
      "wwwroot",
      "**/*.cshtml",
      "appsettings.json",
      "web.config"
    ]
  },

  "scripts": {
    "prepublish": [ "bower install", "dotnet bundle" ],
    "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
  }
}

在此处输入图片说明

As of 11/28/16 this problem appears to be gone. 截至16/28/16,此问题似乎已消失。 My assumption is this was Azure issue. 我的假设是这是Azure问题。 This issue was also filed on the ASP.NET Core repo here: ASP.NET Core 1.1 targeting full framework can not be deployed to Azure App Service 此问题也已在以下ASP.NET Core存储库中提出: 面向完整框架的ASP.NET Core 1.1无法部署到Azure App Service

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM