You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/test/troubleshoot.md
+6-80Lines changed: 6 additions & 80 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ author: tdykstra
4
4
description: Understand and troubleshoot warnings and errors with ASP.NET Core projects.
5
5
ms.author: tdykstra
6
6
ms.custom: mvc
7
-
ms.date: 07/10/2019
7
+
ms.date: 5/2/2025
8
8
uid: test/troubleshoot
9
9
---
10
10
# Troubleshoot and debug ASP.NET Core projects
@@ -79,85 +79,11 @@ Place the following [middleware](xref:fundamentals/middleware/index#create-a-mid
79
79
80
80
To obtain the environment, use either of the following approaches:
81
81
82
-
* Inject the `IHostingEnvironment` into the `Startup.Configure` method and check the environment with the local variable. The following sample code demonstrates this approach.
83
-
84
-
* Assign the environment to a property in the `Startup` class. Check the environment using the property (for example, `if (Environment.IsDevelopment())`).
0 commit comments