From 6f7fc4fb349771ec2a9027c29671edd5d0310cfd Mon Sep 17 00:00:00 2001 From: Jass Bagga Date: Wed, 18 Jan 2017 16:29:20 -0800 Subject: [PATCH] Remove obsolete ViewEngine (#5699) --- .../ViewComponentResult.cs | 13 ------------- .../exceptions.net45.json | 12 ++++++++++++ .../exceptions.netcore.json | 12 ++++++++++++ 3 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 src/Microsoft.AspNetCore.Mvc.ViewFeatures/exceptions.net45.json create mode 100644 src/Microsoft.AspNetCore.Mvc.ViewFeatures/exceptions.netcore.json diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewComponentResult.cs b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewComponentResult.cs index 1aa38c1cdc..df97d7d53d 100644 --- a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewComponentResult.cs +++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewComponentResult.cs @@ -51,19 +51,6 @@ namespace Microsoft.AspNetCore.Mvc /// public ITempDataDictionary TempData { get; set; } - /// - /// - /// This property is unused and will be removed in the next major version. - /// - /// - /// Gets or sets the used to locate views. - /// - /// - /// When null, an instance of from - /// ActionContext.HttpContext.RequestServices is used. - [Obsolete("This property is unused and will be removed in the next major version.")] - public IViewEngine ViewEngine { get; set; } - /// /// Gets or sets the Content-Type header for the response. /// diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/exceptions.net45.json b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/exceptions.net45.json new file mode 100644 index 0000000000..063df4e403 --- /dev/null +++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/exceptions.net45.json @@ -0,0 +1,12 @@ +[ + { + "OldTypeId": "public class Microsoft.AspNetCore.Mvc.ViewComponentResult : Microsoft.AspNetCore.Mvc.ActionResult", + "OldMemberId": "public Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine get_ViewEngine()", + "Kind": "Removal" + }, + { + "OldTypeId": "public class Microsoft.AspNetCore.Mvc.ViewComponentResult : Microsoft.AspNetCore.Mvc.ActionResult", + "OldMemberId": "public System.Void set_ViewEngine(Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine value)", + "Kind": "Removal" + } +] \ No newline at end of file diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/exceptions.netcore.json b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/exceptions.netcore.json new file mode 100644 index 0000000000..063df4e403 --- /dev/null +++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/exceptions.netcore.json @@ -0,0 +1,12 @@ +[ + { + "OldTypeId": "public class Microsoft.AspNetCore.Mvc.ViewComponentResult : Microsoft.AspNetCore.Mvc.ActionResult", + "OldMemberId": "public Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine get_ViewEngine()", + "Kind": "Removal" + }, + { + "OldTypeId": "public class Microsoft.AspNetCore.Mvc.ViewComponentResult : Microsoft.AspNetCore.Mvc.ActionResult", + "OldMemberId": "public System.Void set_ViewEngine(Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine value)", + "Kind": "Removal" + } +] \ No newline at end of file