Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Last active April 12, 2021 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manoj-choudhari-git/232f4aa8759a964e5ff1b46c254017c7 to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/232f4aa8759a964e5ff1b46c254017c7 to your computer and use it in GitHub Desktop.
Set environment variable in web.config file
<configuration>
<system.webServer>
<handlers>
<remove name="aspNetCore" />
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\SampleNetCoreApp.dll">
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
</environmentVariables>
</aspNetCore>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment