1 write to Environment
Microsoft.AspNetCore (1)
WebApplicationBuilder.cs (1)
236
Environment
= webHostContext.HostingEnvironment;
10 references to Environment
Aspire.Dashboard (6)
DashboardWebApplication.cs (6)
179
var isDefaultDashboardDevHost = builder.
Environment
.IsDevelopment() &&
180
string.Equals(builder.
Environment
.ApplicationName, dashboardAssemblyName, StringComparison.Ordinal);
183
var runtimeManifestPath = ResolveStaticAssetsManifestPath(builder.
Environment
.ContentRootPath, AppContext.BaseDirectory, "runtime");
189
StaticWebAssetsLoader.UseStaticWebAssets(builder.
Environment
, staticWebAssetsConfig);
191
else if (!builder.
Environment
.IsDevelopment())
196
else if (!builder.
Environment
.IsDevelopment())
DotNetHostedAgent (1)
Program.cs (1)
76
if (builder.
Environment
.IsDevelopment())
Microsoft.AspNetCore (2)
WebApplicationBuilder.cs (2)
226
[MemberNotNull(nameof(
Environment
), nameof(Host), nameof(WebHost))]
395
IHostEnvironment IHostApplicationBuilder.Environment =>
Environment
;
Stress.ApiService (1)
Program.cs (1)
22
b.AddService(builder.
Environment
.ApplicationName);