If you use a dash / hyphen in a Razor Page file name, the resulting page will not compile. This is because the generated type name includes invalid characters e.g hyphen-test.cshtml becomes.
public class hyphen-test_Page : global::Microsoft.AspNetCore.Mvc.RazorPages.Page
You probably want to replace them with underscores.
The text was updated successfully, but these errors were encountered:
mikebrind commentedMay 19, 2017
•
edited
If you use a dash / hyphen in a Razor Page file name, the resulting page will not compile. This is because the generated type name includes invalid characters e.g hyphen-test.cshtml becomes.
public class hyphen-test_Page : global::Microsoft.AspNetCore.Mvc.RazorPages.PageYou probably want to replace them with underscores.
The text was updated successfully, but these errors were encountered: