我在 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/