I was toying with new Razor Pages in ASP .NET Core 2.0 and noticed some problems with IntelliSense.
When using tag helper for MVC controller I get usual help:

However there is no such help for asp-page tag helper used in Razor Pages:

Is this a problem with my Visual Studio or rather Razor Pages tags do not support it yet?
I use ASP .NET Core 2.0 with framework 4.7 on VS 2017 15.5.5.
You can add support for Pages to any ASP.NET Core MVC app by simply adding a Pages folder and adding Razor Pages files to this folder. Razor Pages use the folder structure as a convention for routing requests.
It seems IntelliSense for routes is not supported (yet I hope), but there is an interesting workaround for that - see Razor Pages Url tt File. The idea is to create some SitePages.tt file in your ASP.NET Core 2 project using Razor Pages to scan the /Pages folder and output a class with string properties to get the IntelliSense for routes:
<cancel-button asp-page="@SitePages.DashboardIndex"></cancel-button>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With