Skip to content

Commit 631a4e1

Browse files
committed
Update debug code to not use Startup /2
1 parent e48b667 commit 631a4e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aspnetcore/test/troubleshoot.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,8 @@ Place the following [middleware](xref:fundamentals/middleware/index#create-a-mid
7979

8080
To 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

0 commit comments

Comments
 (0)