Skip to content

error CS8802: Only one compilation unit can have top-level statements. [C:\Users\aaa\MyApp\MyApp.csproj] The build failed. Fix the build errors and run again. #8738

@durgambigai

Description

@durgambigai

Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/run
Operating System: windows

Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions