Force VS to treat all Blazor cshtml components as inheriting from BlazorComponent so that helpers like @onclick appear in intellisense

This commit is contained in:
Steve Sanderson 2018-01-18 10:05:07 +00:00
parent 374d19c1a4
commit b038117961
1 changed files with 2 additions and 8 deletions

View File

@ -13,8 +13,8 @@
* Then this file can be removed entirely.
*/
using Microsoft.Blazor.Components;
using System;
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.Mvc
{
@ -24,13 +24,7 @@ namespace Microsoft.AspNetCore.Mvc
namespace Microsoft.AspNetCore.Mvc.Razor
{
public class RazorPage<T> {
// This needs to be defined otherwise the VS tooling complains that there's no ExecuteAsync method to override.
public virtual Task ExecuteAsync()
=> throw new NotImplementedException($"Blazor components do not implement {nameof(ExecuteAsync)}.");
}
public class RazorPage<T>: BlazorComponent { }
namespace Internal
{