16 writes to EnvironmentName
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
154hostBuilderOptions.EnvironmentName = Environments.Development;
Aspire.Hosting.Testing.Tests (1)
TestingBuilderTests.cs (1)
83settings.EnvironmentName = testEnvironmentName;
Aspire.Hosting.Tests (1)
Utils\TestDistributedApplicationBuilder.cs (1)
92hostBuilderOptions.EnvironmentName = Environments.Development;
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (2)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (2)
159var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 182var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (2)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (2)
260var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 283var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
AspireEFPostgreSqlExtensionsTests.cs (2)
267var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 290var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Oracle.EntityFrameworkCore.Tests (2)
AspireOracleEFCoreDatabaseExtensionsTests.cs (2)
261var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 284var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
AspireEFMySqlExtensionsTests.cs (2)
255var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 278var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Microsoft.AspNetCore (3)
WebApplicationBuilder.cs (3)
44EnvironmentName = options.EnvironmentName, 99EnvironmentName = options.EnvironmentName, 160EnvironmentName = options.EnvironmentName,
2 references to EnvironmentName
Microsoft.Extensions.Hosting (2)
HostApplicationBuilder.cs (2)
149if (settings.EnvironmentName is not null) 152optionList.Add(new KeyValuePair<string, string?>(HostDefaults.EnvironmentKey, settings.EnvironmentName));