no dogma blog
no dogma blog
Blog Posts
Podcast
Web API Lambda Course
Polly Course
Photos
Contact
Support this Site
About
RSS
Light
Dark
Automatic
Shebang
.NET CLI Shebangs and Argument Parsing
Trying to pass something like -v or -h to a .NET CLI application that uses the shebang style of
dotnet run app.cs
can cause issues because
dotnet run
itself has options that conflict with the application’s arguments. Here’s how to work around that.
Mar 31, 2026
#
.NET
,
CLI
,
Shebang
Cite
×