Skip to content

Commit 7ee7062

Browse files
Update shebang line for hello-world.cs (#49923)
Changed the file-based apps `hello-world.cs` snipped to use a more widely usable shebang line: `#!/usr/bin/env dotnet` This should work on most *nix systems (including macOS) assuming `dotnet` is on the path.
1 parent cad0d02 commit 7ee7062

File tree

1 file changed

+1
-1
lines changed
  • docs/csharp/fundamentals/program-structure/snippets/file-based-program

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/usr/local/share/dotnet/dotnet run
1+
#!/usr/bin/env dotnet
22
Console.WriteLine("Hello, World!");

0 commit comments

Comments
 (0)