'How to solve route problem in blazor on latest preview of vs 2019 and .net core 3?

When adding a new razor view or any other page it gives me the same problem

I tried to reinstall libraries but it didn't work.

@page "/Courses"

Severity Code Description Project File Line Suppression State Error CS0115 'Template.ExecuteAsync()': no suitable method found to override BlazorUdemy C:\Users\Mohammad\source\repos\BlazorUdemy\Pages\Courses.cshtml 1 Active



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source