11 references to HostingStartupExcludeAssembliesKey
Microsoft.AspNetCore (7)
ConfigureWebHostBuilder.cs (5)
46
var previousHostingStartupAssembliesExclude = _configuration[WebHostDefaults.
HostingStartupExcludeAssembliesKey
];
78
else if (!string.Equals(previousHostingStartupAssembliesExclude, _configuration[WebHostDefaults.
HostingStartupExcludeAssembliesKey
], StringComparison.OrdinalIgnoreCase))
81
throw new NotSupportedException($"The hosting startup assemblies exclude list changed from \"{previousHostingStartupAssembliesExclude}\" to \"{_configuration[WebHostDefaults.
HostingStartupExcludeAssembliesKey
]}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead.");
121
var previousHostingStartupAssembliesExclude = _configuration[WebHostDefaults.
HostingStartupExcludeAssembliesKey
];
153
else if (string.Equals(key, WebHostDefaults.
HostingStartupExcludeAssembliesKey
, StringComparison.OrdinalIgnoreCase) &&
WebApplicationBuilder.cs (2)
224
webHostBuilder.UseSetting(WebHostDefaults.
HostingStartupExcludeAssembliesKey
, Configuration[WebHostDefaults.
HostingStartupExcludeAssembliesKey
]);
Microsoft.AspNetCore.Hosting (1)
Internal\WebHostOptions.cs (1)
34
HostingStartupExcludeAssemblies = Split(GetConfig(WebHostDefaults.
HostingStartupExcludeAssembliesKey
));
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostBuilderTests.cs (1)
1048
.UseSetting(WebHostDefaults.
HostingStartupExcludeAssembliesKey
, typeof(TestStartupAssembly1.TestHostingStartup1).GetTypeInfo().Assembly.FullName)
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
398
Assert.Throws<NotSupportedException>(() => builder.WebHost.UseSetting(WebHostDefaults.
HostingStartupExcludeAssembliesKey
, "hostingexclude"));
457
{ WebHostDefaults.
HostingStartupExcludeAssembliesKey
, "hostingexclude" }