Skip to content

File based apps document has incorrect shebang recommendation #52993

@jhudsoncedaron

Description

@jhudsoncedaron

Describe the issue or suggestion

This document: https://learn.microsoft.com/en-us/dotnet/core/sdk/file-based-apps

Reads: #!/usr/bin/env dotnet

Should read #!/usr/bin/env -S dotnet --

I originally thought it was busted in the code due to not finding a working invocation, but no, the one thing I didn't think of works. You can see some of the things I tried and wasted time on here: dotnet/sdk#53810 (comment)

Metadata

Metadata

Assignees

No one assigned

    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