File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public static class MvcServiceCollectionExtensions
27
27
/// </summary>
28
28
/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
29
29
/// <returns>An <see cref="IMvcBuilder"/> that can be used to further configure the MVC services.</returns>
30
+ [ RequiresUnreferencedCode ( "MVC does not currently support native AOT." , Url = "https://aka.ms/aspnet/nativeaot" ) ]
30
31
public static IMvcBuilder AddMvc ( this IServiceCollection services )
31
32
{
32
33
ArgumentNullException . ThrowIfNull ( services ) ;
@@ -41,6 +42,7 @@ public static IMvcBuilder AddMvc(this IServiceCollection services)
41
42
/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
42
43
/// <param name="setupAction">An <see cref="Action{MvcOptions}"/> to configure the provided <see cref="MvcOptions"/>.</param>
43
44
/// <returns>An <see cref="IMvcBuilder"/> that can be used to further configure the MVC services.</returns>
45
+ [ RequiresUnreferencedCode ( "MVC does not currently support native AOT." , Url = "https://aka.ms/aspnet/nativeaot" ) ]
44
46
public static IMvcBuilder AddMvc ( this IServiceCollection services , Action < MvcOptions > setupAction )
45
47
{
46
48
ArgumentNullException . ThrowIfNull ( services ) ;
You can’t perform that action at this time.
0 commit comments