.NET CLI Shebangs and Argument Parsing

I&rsquo;ve been using the dotnet run app.cs CLI applications for a little while. Until now, I had no problem with arguments passed in, but today I added a -v option to my application to print out the version number. Something like this - # !/ usr / bin / dotnet run foreach ( string arg in args ) { switch ( arg ) { case '-v' : case '--version' : Console . WriteLine ( 'Simple Application: Version…