Skip to content

#! like support for file-based apps on windows? #51742

@cvertee

Description

@cvertee

This is probably not the first time someone asks this but whatever. The #! hack on linux is great we can all agree on that, it's pretty simple and fun to use, maybe even soooo useful to put somewhere in the PATH directory.

But what about windows? Can I somehow build one single file based app in one .exe file? Only guess for now is to use workarounds like .cmd files in big 2025 if i want to just type myapp.cmd myargument1 myargument2 which runs dotnet run myapp.cs <...> in the middle. But maybe im wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-run-fileItems related to the "dotnet run <file>" effortuntriagedRequest triage from a team member
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions