AppCmd command to change Environment Variable

From Logic Wiki
Revision as of 10:45, 19 November 2018 by AliIybar (Talk | contribs)

Jump to: navigation, search


%systemroot%\system32\inetsrv\appcmd.exe set config "<SITENAME>" -section:system.webServer/aspNetCore /+"environmentVariables.[name='ASPNETCORE_ENVIRONMENT',value='<VARIABLEVALUE>']" /commit:site

in TFS just write

set config "<SITENAME>" -section:system.webServer/aspNetCore /+"environmentVariables.[name='ASPNETCORE_ENVIRONMENT',value='<VARIABLEVALUE>']" /commit:site