# Microsoft.Extensions.Hosting

``` diff
 namespace Microsoft.Extensions.Hosting {
     public static class Host {
-        public static HostApplicationBuilder CreateApplicationBuilder();
+        [RequiresDynamicCodeAttribute("Hosting uses Microsoft.Extensions.DependencyInjection, which may require generating code dynamically at runtime.")]
+        public static HostApplicationBuilder CreateApplicationBuilder();
-        public static HostApplicationBuilder CreateApplicationBuilder(string[]? args);
+        [RequiresDynamicCodeAttribute("Hosting uses Microsoft.Extensions.DependencyInjection, which may require generating code dynamically at runtime.")]
+        public static HostApplicationBuilder CreateApplicationBuilder(string[]? args);
-        public static IHostBuilder CreateDefaultBuilder();
+        [RequiresDynamicCodeAttribute("Hosting uses Microsoft.Extensions.DependencyInjection, which may require generating code dynamically at runtime.")]
+        public static IHostBuilder CreateDefaultBuilder();
-        public static IHostBuilder CreateDefaultBuilder(string[]? args);
+        [RequiresDynamicCodeAttribute("Hosting uses Microsoft.Extensions.DependencyInjection, which may require generating code dynamically at runtime.")]
+        public static IHostBuilder CreateDefaultBuilder(string[]? args);
     }
     public sealed class HostApplicationBuilder {
-        public HostApplicationBuilder();
+        [RequiresDynamicCodeAttribute("Hosting uses Microsoft.Extensions.DependencyInjection, which may require generating code dynamically at runtime.")]
+        public HostApplicationBuilder();
-        public HostApplicationBuilder(HostApplicationBuilderSettings? settings);
+        [RequiresDynamicCodeAttribute("Hosting uses Microsoft.Extensions.DependencyInjection, which may require generating code dynamically at runtime.")]
+        public HostApplicationBuilder(HostApplicationBuilderSettings? settings);
-        public HostApplicationBuilder(string[]? args);
+        [RequiresDynamicCodeAttribute("Hosting uses Microsoft.Extensions.DependencyInjection, which may require generating code dynamically at runtime.")]
+        public HostApplicationBuilder(string[]? args);
     }
     public class HostBuilder : IHostBuilder {
-        public HostBuilder();
+        [RequiresDynamicCodeAttribute("Hosting uses Microsoft.Extensions.DependencyInjection, which may require generating code dynamically at runtime.")]
+        public HostBuilder();
     }
     public static class HostingHostBuilderExtensions {
-        public static IHostBuilder ConfigureDefaults(this IHostBuilder builder, string[]? args);
+        [RequiresDynamicCodeAttribute("Hosting uses Microsoft.Extensions.DependencyInjection, which may require generating code dynamically at runtime.")]
+        public static IHostBuilder ConfigureDefaults(this IHostBuilder builder, string[]? args);
-        public static IHostBuilder UseDefaultServiceProvider(this IHostBuilder hostBuilder, Action<ServiceProviderOptions> configure);
+        [RequiresDynamicCodeAttribute("Hosting uses Microsoft.Extensions.DependencyInjection, which may require generating code dynamically at runtime.")]
+        public static IHostBuilder UseDefaultServiceProvider(this IHostBuilder hostBuilder, Action<ServiceProviderOptions> configure);
-        public static IHostBuilder UseDefaultServiceProvider(this IHostBuilder hostBuilder, Action<HostBuilderContext, ServiceProviderOptions> configure);
+        [RequiresDynamicCodeAttribute("Hosting uses Microsoft.Extensions.DependencyInjection, which may require generating code dynamically at runtime.")]
+        public static IHostBuilder UseDefaultServiceProvider(this IHostBuilder hostBuilder, Action<HostBuilderContext, ServiceProviderOptions> configure);
     }
     public interface IHostEnvironment {
-        string? ApplicationName { get; set; }
+        string ApplicationName { get; set; }
     }
     [ObsoleteAttribute("IHostingEnvironment has been deprecated. Use Microsoft.Extensions.Hosting.IHostEnvironment instead.")]
     public interface IHostingEnvironment {
-        string? ApplicationName { get; set; }
+        string ApplicationName { get; set; }
     }
 }
```

