-
Notifications
You must be signed in to change notification settings - Fork 5k
Description
dotnet watch ⌚ C:\Users\hp\MyWebApp\Pages\Index.cshtml.cs(4,13): error CS7014: Attributes are not valid in this context.
dotnet watch ⌚ C:\Users\hp\MyWebApp\Pages\Index.cshtml.cs(7,2): error CS0103: The name 'div' does not exist in the current context
dotnet watch ⌚ C:\Users\hp\MyWebApp\Pages\Index.cshtml.cs(8,6): error CS0103: The name 'h1' does not exist in the current context
dotnet watch ⌚ C:\Users\hp\MyWebApp\Pages\Index.cshtml.cs(8,9): error CS0103: The name 'Hello' does not exist in the current context
dotnet watch ⌚ C:\Users\hp\MyWebApp\Pages\Index.cshtml.cs(8,16): error CS0103: The name 'world' does not exist in the current context
dotnet watch ⌚ C:\Users\hp\MyWebApp\Pages\Index.cshtml.cs(8,24): error CS0103: The name 'h1' does not exist in the current context
dotnet watch ⌚ C:\Users\hp\MyWebApp\Pages\Index.cshtml.cs(9,6): error CS0103: The name 'p' does not exist in the current context
dotnet watch ⌚ C:\Users\hp\MyWebApp\Pages\Index.cshtml.cs(9,8): error CS0103: The name 'The' does not exist in the current context
dotnet watch ⌚ C:\Users\hp\MyWebApp\Pages\Index.cshtml.cs(9,12): error CS0246: The type or namespace name 'time' could not be found (are you missing a using directive or an assembly reference?)
dotnet watch ⌚ Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages_Index_cshtml.g.cs(62,171): error CS0246: The type or namespace name 'IndexModel' could not be found (are you missing a using directive or an assembly reference?)
iam getting error like this