Skip to content

error #8145

@Krishna6189

Description

@Krishna6189

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalearea-tutorialsIssues related to getting started tutorialsneeds-more-infoNot enough information has been provided. Please share more detail as requested.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions