I have this web.config file i place in the root of my project that is built by azure devops here:
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\ManagementStudio.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout">
<environmentVariables>
<environmentVariable name="MS_CONNECTIONSTRING" value="" />
<environmentVariable name="CENTRAL_APPLICATION_SETTINGS" value="" />
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="" />
<environmentVariable name="MS_COOKIEEXPIRYTIMEINMINUTES" value="" />
<environmentVariable name="MS_STATICFILECACHEINSECONDS" value="" />
<environmentVariable name="MS_COOKIEDOMAIN" value="" />
</environmentVariables>
</aspNetCore>
</system.webServer>
</location>
</configuration>
I then set these bunch of variables in the release section:
ASPNETCORE_ENVIRONMENT
Development
CENTRAL_APPLICATION_SETTINGS
csa
CLOUDFRONT_DOMAIN
csd
MS_CONNECTIONSTRING
connstring
MS_COOKIEDOMAIN
dev.website.com
I set them as settable at release time.
In my IIS Web App Deploy, I ticked XML Variable Substitution.
However, it doesn't seem like any of my variables are changed at all.