From 8d1e419a9960514036d82a5900c1d540cc6bede9 Mon Sep 17 00:00:00 2001 From: Kristian Hellang Date: Sat, 30 Jul 2016 00:19:43 +0200 Subject: [PATCH] Added ObsoleteAttribute to unused ViewEngine property Fixes #5066 --- .../ViewComponentResult.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewComponentResult.cs b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewComponentResult.cs index 943745627c..1aa38c1cdc 100644 --- a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewComponentResult.cs +++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewComponentResult.cs @@ -52,10 +52,16 @@ 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; } ///