Skip to content

Commit 57891ef

Browse files
committed
Set executable perms, fix warnings
set the `+x` permission on the file-based program. Fix build warnings.
1 parent 80423f7 commit 57891ef

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

docs/csharp/fundamentals/tutorials/file-based-programs.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Build file-based programs
33
description: File-based programs are command line utilities that are built and execute without a project file. The build and run commands are implicit. New syntax supports project settings in source.
4-
ms.date: 08/01/2025
4+
ms.date: 08/08/2025
55
ms.topic: tutorial
66
#customer intent: As a developer, I want build utilities so that more work is automated.
77
---
@@ -188,7 +188,7 @@ Next, let's add command line parsing. The current version writes each work as a
188188

189189
Users should be able to use both.
190190

191-
Most command line applications need to parse command line arguments to handle options, commands, and user input effectively. The [`System.CommandLine` library](~/standard/commandline/index.md) provides comprehensive capabilities to handle commands, subcommands, options, and arguments, allowing you to concentrate on what your application does rather than the mechanics of parsing command line input.
191+
Most command line applications need to parse command line arguments to handle options, commands, and user input effectively. The [`System.CommandLine` library](../../../standard/commandline/index.md) provides comprehensive capabilities to handle commands, subcommands, options, and arguments, allowing you to concentrate on what your application does rather than the mechanics of parsing command line input.
192192

193193
The `System.CommandLine` library offers several key benefits:
194194

@@ -308,17 +308,10 @@ Test the application by running several different commands. If you have trouble,
308308

309309
:::code language="csharp" source="./snippets/file-based-programs/AsciiArt.cs":::
310310

311-
## Next step -or- Related content
311+
In this tutorial, you learned to build a file-based program, where you build the program in a single C# file. These utilities don't need a project file, and can use the `#!` directive on unix systems. These programs provide a learning platform between our [online tutorials](../../tour-of-csharp/tutorials/hello-world.md) and larger project-based programs. They also are a great platform for smaller command line utilitie.
312312

313-
-or-
313+
## Related content
314314

315-
* [Related article title](link.md)
316-
* [Related article title](link.md)
317-
* [Related article title](link.md)
318-
319-
<!-- Optional: Next step or Related content - H2
320-
321-
A "Related content" section that lists links to
322-
1 to 3 articles the user might find helpful.
323-
324-
-->
315+
- [Top level statement](../program-structure/top-level-statements.md)
316+
- [Preprocessor directives](../../language-reference/preprocessor-directives.md#file-based-programs)
317+
- [What's new in C# 14](../../whats-new/csharp-14.md)

docs/csharp/fundamentals/tutorials/snippets/file-based-programs/AsciiArt.cs

100644100755
File mode changed.

0 commit comments

Comments
 (0)