c# - 新的 web.config 无需更改即可在 Azure 上运行吗

标签 c# asp.net azure

我正在阅读此博客,想知道这个新的 web.config 文件是否可以在 azure 上正常工作。谢谢。

https://blogs.msdn.microsoft.com/webdev/2016/05/16/announcing-asp-net-core-rc2/

<configuration>
<system.webServer>

  <handlers>
    <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
  </handlers>

  <aspNetCore processPath="%LAUNCHER_PATH%"
              arguments="%LAUNCHER_ARGS%"
              stdoutLogEnabled="false"
              stdoutLogFile=".\logs\stdout"
              forwardWindowsAuthToken="false"/>
</system.webServer>
</configuration>

最佳答案

是的,新的 aspnet core 配置文件会将应用程序设置作为环境变量,其工作方式与现在非常相似

关于c# - 新的 web.config 无需更改即可在 Azure 上运行吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37352577/

相关文章:

c# - 使用 runat ="server"导致 View 状态 MAC 验证失败

c# - 'Microsoft.EntityFrameworkCore.Infrastructure.IDbContextFactory`1[TContext ]' violates the constraint of type parameter ' TContext'

c# - 通过字符串获取资源项 winforms

.net - 在 IIS 6 上使用 ASP.NET MVC 站点的客户端证书

asp.net - 浏览IIS网站时出现 "Service Unavailable"错误

azure - 如何将现有的 azure 函数导出到 VS Code

c# - 是否有不区分大小写的 string.Replace 替代方法?

c# - 如何使用 Dapper 实现通用存储库设计模式?

azure - 如何使用 terraform 模板将 Azure VM 添加到恢复服务保管库中?

reactjs - 无法在 Azure 静态 Web 应用中部署我的 React 应用程序。 Github 操作抛出此日志 :