microsoft / slow-cheetah

Tooling for XML and JSON file transforms on build from Visual Studio and MSBuild
Other
323 stars 67 forks source link

Transformation happening after config is loaded #253

Open drvic10k opened 2 years ago

drvic10k commented 2 years ago

The transformation is correctly applied and the resulting config file in the output looks as expected. But the configuration loaded in memory is as if taken from the original config file.

project is .net 6 self hosted web API project using appsettings.json configuration file

saulyt commented 2 years ago

I am having the same issue. Is there a workaround?

Transzendental commented 2 years ago

I was facing the same issue. You should check the launchSettings.json file, there is the ASPNETCORE_ENVIRONMENT defined which is taking precedence over the choosen build configuration.