Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created April 12, 2021 15:23
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/baaa27b6e29e6596da13fd4a7780d20c to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/baaa27b6e29e6596da13fd4a7780d20c to your computer and use it in GitHub Desktop.
Set ASPNETCORE_ENVIRONMENT variable via launchSettings.json when application is running locally
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:56455",
"sslPort": 44380
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"SampleApp": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment