Skip to content

running a standalone C# file with dependencies on other .cs files. #49435

Closed as duplicate of#48174
@peter-chenqing

Description

@peter-chenqing

When running a standalone C# file with dependencies on other .cs files in .NET 10 preview5, how to tell the compiler about these additional files. such as an Api.cs dependencies on a ModelData.cs. actually, in python, we can directly import the dependencied files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-run-fileItems related to the "dotnet run <file>" effort

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions