File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,8 @@ Place the following [middleware](xref:fundamentals/middleware/index#create-a-mid
7979
8080To obtain the environment, use either of the following approaches:
8181
82- * Inject ` IHostingEnvironment ` and check the environment with the local variable. The following sample code demonstrates this approach.
83-
8482* Assign the environment to a property in ` Program.cs ` . Check the environment using the property, for example, ` if (app.Environment.IsDevelopment()) ` .
83+ * Inject ` IHostingEnvironment ` and check the environment with the local variable. The following sample code demonstrates this approach.
8584
8685:::code language="csharp" source="~ /test/troubleshoot/code/9.x/Program.cs" highlight="13-85":::
8786
You can’t perform that action at this time.
0 commit comments