From c0aabee931318f38f7f092208aa9c0314c8e94ae Mon Sep 17 00:00:00 2001 From: Jacob Stamm Date: Tue, 18 Dec 2018 11:47:58 -0500 Subject: [PATCH] Patch 1 (#10039) * Update GitHub links to current AspNetCore repo * Update code sample to reference aspnet core 2.2 --- aspnetcore/mvc/compatibility-version.md | 6 +++--- .../samples/2.x/CompatibilityVersionSample/Startup2.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aspnetcore/mvc/compatibility-version.md b/aspnetcore/mvc/compatibility-version.md index 22ec4c70a5..6c55d02639 100644 --- a/aspnetcore/mvc/compatibility-version.md +++ b/aspnetcore/mvc/compatibility-version.md @@ -29,8 +29,8 @@ The default compatibility for ASP.NET Core 2.1 and later 2.x apps that do **not* The following code sets the compatibility mode to ASP.NET Core 2.2, except for the following behaviors: -* [AllowCombiningAuthorizeFilters](https://github.com/aspnet/Mvc/blob/master/src/Microsoft.AspNetCore.Mvc.Core/MvcOptions.cs) -* [InputFormatterExceptionPolicy](https://github.com/aspnet/Mvc/blob/master/src/Microsoft.AspNetCore.Mvc.Core/MvcOptions.cs) +* [AllowCombiningAuthorizeFilters](https://github.com/aspnet/AspNetCore/blob/master/src/Mvc/src/Microsoft.AspNetCore.Mvc.Core/MvcOptions.cs) +* [InputFormatterExceptionPolicy](https://github.com/aspnet/AspNetCore/blob/master/src/Mvc/src/Microsoft.AspNetCore.Mvc.Core/MvcOptions.cs) [!code-csharp[Main](compatibility-version/samples/2.x/CompatibilityVersionSample/Startup2.cs?name=snippet1)] @@ -39,6 +39,6 @@ For apps that encounter breaking behavior changes, using the appropriate compati * Allows you to use the latest release and opt out of specific breaking behavior changes. * Gives you time to update your app so it works with the latest changes. -The [MvcOptions](https://github.com/aspnet/Mvc/blob/master/src/Microsoft.AspNetCore.Mvc.Core/MvcOptions.cs) class source comments have a good explanation of what changed and why the changes are an improvement for most users. +The [MvcOptions](https://github.com/aspnet/AspNetCore/blob/master/src/Mvc/src/Microsoft.AspNetCore.Mvc.Core/MvcOptions.cs) class source comments have a good explanation of what changed and why the changes are an improvement for most users. At some future date, there will be an [ASP.NET Core 3.0 version](https://github.com/aspnet/Home/wiki/Roadmap). Old behaviors supported by compatibility switches will be removed in the 3.0 version. We feel these are positive changes benefitting nearly all users. By introducing these changes now, most apps can benefit now, and the others will have time to update their apps. diff --git a/aspnetcore/mvc/compatibility-version/samples/2.x/CompatibilityVersionSample/Startup2.cs b/aspnetcore/mvc/compatibility-version/samples/2.x/CompatibilityVersionSample/Startup2.cs index 7f2ff662b6..09f57952ef 100644 --- a/aspnetcore/mvc/compatibility-version/samples/2.x/CompatibilityVersionSample/Startup2.cs +++ b/aspnetcore/mvc/compatibility-version/samples/2.x/CompatibilityVersionSample/Startup2.cs @@ -13,7 +13,7 @@ namespace CompatibilityVersionSample public void ConfigureServices(IServiceCollection services) { services.AddMvc() - // Include the 2.1 behaviors + // Include the 2.2 behaviors .SetCompatibilityVersion(CompatibilityVersion.Version_2_2) // Except for the following. .AddMvcOptions(options =>