How to publish environment specific appsettings in .Net core app?

后端 未结 12 2462
刺人心
刺人心 2020-12-04 15:33

I have 3 environment specific appsettings files in my .Net core application

in project.json I have setup publishOptions

12条回答
  •  星月不相逢
    2020-12-04 16:11

    Honestly I think that is not the right task for a build pipeline. Also the publishing features of the dotnet cli are very limited. Go to external tools like Tseng showed you. Deployment is another domain with an own set of complexity than building.

    There is not a build in way on dotnet cli beyond using external tools!

提交回复
热议问题