I have a couple of confusions:
I published an ASP.NET Core project and I do not see launchsettings.json in bin\Release\PublishOutput. If I use Octopus, how do I configure attributes based on server type?
Is it possible to move launchsettings.json to the root folder instead of under properties?
If I want to use only one json like appsettings.json, can I merge both in the root folder?
Can web.config be used instead of launchsettings.json, and how?
Answers to your questions:
launchSettings.json
is only used by Visual Studio. You can use Octopus variables in Octopus.launchSettings.json
for publishing an app.appsettings.json
. This will make deployments easier, since Octopus recognizes this file by default.web.config
is used by IIS, not by your .NET Core application directly, hence IIS limitations to what you can configure might be applied.Hints.
appsettings.json
, e.g. appsettings.Release.json
.appsettings.json
file, especially in environment specific one, e.g. appsettings.Release.json
may contain a config value like "#{ConnectionString}" and during deployment Octopus would substitute this placeholder with the actual value from Octopus variables.