67 references to IsDevelopment
Aspire.Dashboard (2)
DashboardWebApplication.cs (1)
370if (!_app.Environment.IsDevelopment())
Model\BrowserSecurityHeadersMiddleware.cs (1)
55if (!environment.IsDevelopment())
Aspire.Hosting (2)
OtlpConfigurationExtensions.cs (1)
85if (environment.IsDevelopment())
ProjectResourceBuilderExtensions.cs (1)
299if (builder.ApplicationBuilder.ExecutionContext.IsRunMode && builder.ApplicationBuilder.Environment.IsDevelopment())
Aspire.Hosting.NodeJs (1)
NodeExtensions.cs (1)
72.WithEnvironment("NODE_ENV", builder.ApplicationBuilder.Environment.IsDevelopment() ? "development" : "production");
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
92if (!builder.Environment.IsDevelopment())
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
92if (!builder.Environment.IsDevelopment())
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
92if (!builder.Environment.IsDevelopment())
Aspire.Oracle.EntityFrameworkCore (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
92if (!builder.Environment.IsDevelopment())
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
92if (!builder.Environment.IsDevelopment())
BlazorServerApp (1)
Startup.cs (1)
29if (env.IsDevelopment())
BlazorUnitedApp (1)
Program.cs (1)
19if (!app.Environment.IsDevelopment())
BrowserTelemetry.Web (1)
Program.cs (1)
13if (!app.Environment.IsDevelopment())
ClaimsTransformation (1)
Startup.cs (1)
43if (env.IsDevelopment())
Cookies (1)
Startup.cs (1)
50if (env.IsDevelopment())
DynamicSchemes (1)
Startup.cs (1)
37if (env.IsDevelopment())
HeaderPropagationSample (1)
Startup.cs (1)
52if (env.IsDevelopment())
HostedBlazorWebassemblyApp.Server (1)
Startup.cs (1)
39if (env.IsDevelopment())
HttpsPolicySample (1)
Startup.cs (1)
30if (!environment.IsDevelopment())
Identity.DefaultUI.WebSite (3)
NoIdentityStartup.cs (1)
43if (env.IsDevelopment())
StartupBase.cs (1)
58if (env.IsDevelopment())
StartupWithoutEndpointRouting.cs (1)
28if (env.IsDevelopment())
Identity.ExternalClaims (1)
Startup.cs (1)
78if (env.IsDevelopment())
IdentitySample.DefaultUI (1)
Startup.cs (1)
55if (env.IsDevelopment())
IdentitySample.Mvc (1)
Startup.cs (1)
60if (env.IsDevelopment())
Kestrel.SampleApp (1)
Startup.cs (1)
80if (context.HostingEnvironment.IsDevelopment())
Keycloak.Web (1)
Program.cs (1)
49if (!app.Environment.IsDevelopment())
Microsoft.AspNetCore (6)
WebApplicationBuilder.cs (3)
229if (hostApplicationBuilder.Environment.IsDevelopment()) 276if (env.IsDevelopment() && env.ApplicationName is { Length: > 0 }) 400if (allowDeveloperExceptionPage && context.HostingEnvironment.IsDevelopment())
WebHost.cs (3)
175if (env.IsDevelopment()) 209options.ValidateScopes = context.HostingEnvironment.IsDevelopment(); 221if (ctx.HostingEnvironment.IsDevelopment())
Microsoft.AspNetCore.Components.Endpoints (2)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
72return _httpContext.RequestServices.GetService<IHostEnvironment>()?.IsDevelopment() == true
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
208var showDetailedErrors = env.IsDevelopment() || options.Value.DetailedErrors;
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Builder\WebAssemblyRazorComponentsEndpointConventionBuilderExtensions.cs (1)
66if (environment.IsDevelopment())
Microsoft.AspNetCore.Hosting (2)
GenericHost\GenericWebHostService.cs (1)
154var showDetailedErrors = HostingEnvironment.IsDevelopment() || Options.WebHostOptions.DetailedErrors;
Internal\WebHost.cs (1)
246var showDetailedErrors = hostingEnv.IsDevelopment() || _options.DetailedErrors;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
CSharpCompiler.cs (2)
192optimizationLevel = hostingEnvironment.IsDevelopment() ? 213var configurationSymbol = hostingEnvironment.IsDevelopment() ? "DEBUG" : "RELEASE";
Microsoft.AspNetCore.Routing (2)
ConfigureRouteHandlerOptions.cs (1)
20if (_environment?.IsDevelopment() ?? false)
RouteHandlerOptions.cs (1)
22/// Defaults to <see cref="HostEnvironmentEnvExtensions.IsDevelopment(IHostEnvironment)"/>.
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
166if (!environment.IsDevelopment() && environment.WebRootFileProvider is not CompositeFileProvider)
Microsoft.Extensions.Hosting (3)
HostBuilder.cs (1)
351if (_hostBuilderContext!.HostingEnvironment.IsDevelopment() && _defaultProviderFactoryUsed)
HostingHostBuilderExtensions.cs (2)
244if (env.IsDevelopment() && env.ApplicationName is { Length: > 0 }) 327bool isDevelopment = context.HostingEnvironment.IsDevelopment();
MvcFormSample (1)
Program.cs (1)
12if (!app.Environment.IsDevelopment())
MyFrontend (1)
Program.cs (1)
22if (!app.Environment.IsDevelopment())
OpenAIEndToEnd.WebStory (1)
Program.cs (1)
19if (!app.Environment.IsDevelopment())
OpenIdConnectSample (1)
Startup.cs (1)
130if (Environment.IsDevelopment())
OrleansServiceDefaults (1)
Extensions.cs (1)
100if (app.Environment.IsDevelopment())
PathSchemeSelection (1)
Startup.cs (1)
58if (env.IsDevelopment())
Playground.ServiceDefaults (1)
Extensions.cs (1)
97if (app.Environment.IsDevelopment())
Sample (2)
Program.cs (2)
41if (app.Environment.IsDevelopment()) 52if (app.Environment.IsDevelopment())
Sandbox (2)
Startup.cs (2)
26if (env.IsDevelopment()) 33if (env.IsDevelopment())
Seq.ServiceDefaults (1)
Extensions.cs (1)
99if (app.Environment.IsDevelopment())
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
111if (env.IsDevelopment())
SignalRSamples (1)
Startup.cs (1)
31if (env.IsDevelopment())
SignalRWeb (1)
Program.cs (1)
10if (!app.Environment.IsDevelopment())
SocialWeather (1)
Startup.cs (1)
24if (env.IsDevelopment())
StaticFilesAuth (1)
Startup.cs (1)
72if (env.IsDevelopment())
TestingAppHost1.ServiceDefaults (1)
Extensions.cs (1)
106if (app.Environment.IsDevelopment())
TestShop.ServiceDefaults (1)
Extensions.cs (1)
96if (app.Environment.IsDevelopment())
WaitFor.Frontend (1)
Program.cs (1)
18if (!app.Environment.IsDevelopment())
WebPubSubWeb (1)
Program.cs (1)
17if (!app.Environment.IsDevelopment())