From 322f31fc1281df0ed8d5506518499185b44cd3b5 Mon Sep 17 00:00:00 2001 From: Damian Edwards Date: Sat, 15 Nov 2025 16:07:45 -0800 Subject: [PATCH] Update shebang line for hello-world.cs 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. --- .../snippets/file-based-program/hello-world.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/fundamentals/program-structure/snippets/file-based-program/hello-world.cs b/docs/csharp/fundamentals/program-structure/snippets/file-based-program/hello-world.cs index e3173e7a15eb4..7cc349c4f1369 100644 --- a/docs/csharp/fundamentals/program-structure/snippets/file-based-program/hello-world.cs +++ b/docs/csharp/fundamentals/program-structure/snippets/file-based-program/hello-world.cs @@ -1,2 +1,2 @@ -#!/usr/local/share/dotnet/dotnet run +#!/usr/bin/env dotnet Console.WriteLine("Hello, World!");