@@ -27,7 +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
+ [ RequiresUnreferencedCode ( "MVC does not currently support trimming or native AOT." , Url = "https://aka.ms/aspnet/trimming " ) ]
31
31
public static IMvcBuilder AddMvc ( this IServiceCollection services )
32
32
{
33
33
ArgumentNullException . ThrowIfNull ( services ) ;
@@ -42,7 +42,7 @@ public static IMvcBuilder AddMvc(this IServiceCollection services)
42
42
/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
43
43
/// <param name="setupAction">An <see cref="Action{MvcOptions}"/> to configure the provided <see cref="MvcOptions"/>.</param>
44
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 " ) ]
45
+ [ RequiresUnreferencedCode ( "MVC does not currently support trimming or native AOT." , Url = "https://aka.ms/aspnet/trimming " ) ]
46
46
public static IMvcBuilder AddMvc ( this IServiceCollection services , Action < MvcOptions > setupAction )
47
47
{
48
48
ArgumentNullException . ThrowIfNull ( services ) ;
@@ -79,7 +79,7 @@ public static IMvcBuilder AddMvc(this IServiceCollection services, Action<MvcOpt
79
79
/// on the resulting builder.
80
80
/// </para>
81
81
/// </remarks>
82
- [ RequiresUnreferencedCode ( "MVC does not currently support native AOT." , Url = "https://aka.ms/aspnet/nativeaot " ) ]
82
+ [ RequiresUnreferencedCode ( "MVC does not currently support trimming or native AOT." , Url = "https://aka.ms/aspnet/trimming " ) ]
83
83
public static IMvcBuilder AddControllers ( this IServiceCollection services )
84
84
{
85
85
ArgumentNullException . ThrowIfNull ( services ) ;
@@ -114,7 +114,7 @@ public static IMvcBuilder AddControllers(this IServiceCollection services)
114
114
/// on the resulting builder.
115
115
/// </para>
116
116
/// </remarks>
117
- [ RequiresUnreferencedCode ( "MVC does not currently support native AOT." , Url = "https://aka.ms/aspnet/nativeaot " ) ]
117
+ [ RequiresUnreferencedCode ( "MVC does not currently support trimming or native AOT." , Url = "https://aka.ms/aspnet/trimming " ) ]
118
118
public static IMvcBuilder AddControllers ( this IServiceCollection services , Action < MvcOptions > ? configure )
119
119
{
120
120
ArgumentNullException . ThrowIfNull ( services ) ;
@@ -172,7 +172,7 @@ private static IMvcCoreBuilder AddControllersCore(IServiceCollection services)
172
172
/// To add services for pages call <see cref="AddRazorPages(IServiceCollection)"/>.
173
173
/// </para>
174
174
/// </remarks>
175
- [ RequiresUnreferencedCode ( "MVC does not currently support native AOT." , Url = "https://aka.ms/aspnet/nativeaot " ) ]
175
+ [ RequiresUnreferencedCode ( "MVC does not currently support trimming or native AOT." , Url = "https://aka.ms/aspnet/trimming " ) ]
176
176
public static IMvcBuilder AddControllersWithViews ( this IServiceCollection services )
177
177
{
178
178
ArgumentNullException . ThrowIfNull ( services ) ;
@@ -205,7 +205,7 @@ public static IMvcBuilder AddControllersWithViews(this IServiceCollection servic
205
205
/// To add services for pages call <see cref="AddRazorPages(IServiceCollection)"/>.
206
206
/// </para>
207
207
/// </remarks>
208
- [ RequiresUnreferencedCode ( "MVC does not currently support native AOT." , Url = "https://aka.ms/aspnet/nativeaot " ) ]
208
+ [ RequiresUnreferencedCode ( "MVC does not currently support trimming or native AOT." , Url = "https://aka.ms/aspnet/trimming " ) ]
209
209
public static IMvcBuilder AddControllersWithViews ( this IServiceCollection services , Action < MvcOptions > ? configure )
210
210
{
211
211
ArgumentNullException . ThrowIfNull ( services ) ;
@@ -253,7 +253,7 @@ private static IMvcCoreBuilder AddControllersWithViewsCore(IServiceCollection se
253
253
/// To add services for controllers with views call <see cref="AddControllersWithViews(IServiceCollection)"/>.
254
254
/// </para>
255
255
/// </remarks>
256
- [ RequiresUnreferencedCode ( "Razor Pages does not currently support native AOT." , Url = "https://aka.ms/aspnet/nativeaot " ) ]
256
+ [ RequiresUnreferencedCode ( "Razor Pages does not currently support trimming or native AOT." , Url = "https://aka.ms/aspnet/trimming " ) ]
257
257
public static IMvcBuilder AddRazorPages ( this IServiceCollection services )
258
258
{
259
259
ArgumentNullException . ThrowIfNull ( services ) ;
@@ -284,7 +284,7 @@ public static IMvcBuilder AddRazorPages(this IServiceCollection services)
284
284
/// To add services for controllers with views call <see cref="AddControllersWithViews(IServiceCollection)"/>.
285
285
/// </para>
286
286
/// </remarks>
287
- [ RequiresUnreferencedCode ( "Razor Pages does not currently support native AOT." , Url = "https://aka.ms/aspnet/nativeaot " ) ]
287
+ [ RequiresUnreferencedCode ( "Razor Pages does not currently support trimming or native AOT." , Url = "https://aka.ms/aspnet/trimming " ) ]
288
288
public static IMvcBuilder AddRazorPages ( this IServiceCollection services , Action < RazorPagesOptions > ? configure )
289
289
{
290
290
ArgumentNullException . ThrowIfNull ( services ) ;
0 commit comments