Skip to content

Commit 45f431f

Browse files
authored
Merge pull request #7727 from umbraco/task/63061-dotnet-env-precedence
Added more information about DOTNET_ENVIRONMENT value and precedence
2 parents 5f84c05 + 870e79a commit 45f431f

File tree

1 file changed

+6
-0
lines changed
  • umbraco-cloud/build-and-customize-your-solution/set-up-your-project/project-settings

1 file changed

+6
-0
lines changed

umbraco-cloud/build-and-customize-your-solution/set-up-your-project/project-settings/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ Enabling IIS logging will cause the site to restart. For additional information,
132132
Changing the .NET framework runtime or the `DOTNET_ENVIRONMENT` environment variable will also cause your website to restart.
133133
{% endhint %}
134134

135+
{% hint style="info" %}
136+
When using `WebApplication`, `DOTNET_ENVIRONMENT` takes precedence over `ASPNETCORE_ENVIRONMENT`. When using the legacy `WebHost`, `ASPNETCORE_ENVIRONMENT` takes precedence instead.
137+
138+
You can also override the environment value by setting the `ASPNETCORE_ENVIRONMENT` variable in your `web.config` file.
139+
{% endhint %}
140+
135141
![Advanced Settings](images/advanced-settings.png)
136142

137143
![Advanced Settings continued](images/advanced-settings-continued.png)

0 commit comments

Comments
 (0)