|
1 | 1 | ---
|
2 | 2 | title: Build file-based programs
|
3 | 3 | 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 |
5 | 5 | ms.topic: tutorial
|
6 | 6 | #customer intent: As a developer, I want build utilities so that more work is automated.
|
7 | 7 | ---
|
@@ -188,7 +188,7 @@ Next, let's add command line parsing. The current version writes each work as a
|
188 | 188 |
|
189 | 189 | Users should be able to use both.
|
190 | 190 |
|
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. |
192 | 192 |
|
193 | 193 | The `System.CommandLine` library offers several key benefits:
|
194 | 194 |
|
@@ -308,17 +308,10 @@ Test the application by running several different commands. If you have trouble,
|
308 | 308 |
|
309 | 309 | :::code language="csharp" source="./snippets/file-based-programs/AsciiArt.cs":::
|
310 | 310 |
|
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. |
312 | 312 |
|
313 |
| --or- |
| 313 | +## Related content |
314 | 314 |
|
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) |
0 commit comments