asp.net - 将 appsettings.product.json 发布到 azure

标签 asp.net visual-studio azure

我在 VS 2015 Update 3 中有一个 asp.net core 1.0.0 应用程序,有两个应用程序设置 - appsettings.Development.json 和 appsettings.Production.json。我正在尝试使用 VS 将我的应用程序发布到 Azure,我需要它使用 appsettings.Production.json 中的配置。但是我似乎无法让它工作。它甚至似乎没有使用开发 json——只是基本的 appsettings.json,它没有任何东西。

那么如何使用 appsettings.Production.json 配置让 VS 发布在 Azure 中工作?

最佳答案

查看以下博客文章:

http://asp.net-hacker.rocks/2016/03/21/configure-aspnetcore.html

它讨论了使用特定于环境的配置。看来变换的概念还没有被带过来。

关于asp.net - 将 appsettings.product.json 发布到 azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38331934/

相关文章:

c# - ASP.NET 线程 - 我可以使用异步方法还是使用线程?

javascript - 如何使用 jQuery ajax 请求触发事件处理程序背后的代码

asp.net - 关键字 'user' 附近的语法不正确 - 如何编写我的查询 - VB.net 和 Sql Server

c# - T4模板错误

visual-studio-2010 - 是否可以让 Windows Azure SDK 1.7 项目在 2.3 模拟器中运行?

c# - Durable Orchestrator 在 Task.WhenAll 之后卡住

azure - IOT 中心事件转化为函数

c# - ASP.NET Core 2.0 动态认证

visual-studio - 单元测试的 Resharper 问题

visual-studio - pubxml XML 更改 web 部署上的 web.config 值