Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building CLI Applications with C# and .NET
  • Table Of Contents Toc
Building CLI Applications with C# and .NET

Building CLI Applications with C# and .NET

By : Tidjani Belmansour
5 (1)
close
close
Building CLI Applications with C# and .NET

Building CLI Applications with C# and .NET

5 (1)
By: Tidjani Belmansour

Overview of this book

Developers and system administrators often face challenges like inefficient workflows, complex system operations, and the growing demand for robust automation tools. CLI applications provide a powerful solution by enhancing flexibility, efficiency, and productivity in various environments. This book will guide you through mastering the development of robust command-line tools using .NET. Written by a Microsoft Azure MVP, the book’s hands-on approach ensures practical experience with real-world projects. You’ll start with an overview of foundational principles, essential concepts, and best practices for CLI application development. From there, you’ll advance to creating interactive interfaces, integrating with external APIs and services, and implementing security measures to safeguard your applications. Each chapter will build progressively from basic to advanced topics. Beyond development, you’ll learn how to enhance application quality through testing, package for efficient distribution, and deploy effectively. The book also teaches strategies to optimize performance to ensure your applications run efficiently under heavy usage. By the end of this book, you’ll have gained a deep understanding of CLI application development with .NET to build modular, extensible, and easy-to-maintain applications.
Table of Contents (23 chapters)
close
close
Lock Free Chapter
1
Part 1: Getting Started with CLI Applications
5
Part 2: Foundations of Building CLI Applications
9
Part 3: Advanced Topics in CLI Application Development
13
Part 4: Testing and Deployment
16
Part 5: Advanced Techniques and Best Practices

Command-Line Parsing

In the previous chapter, we created a console application and learned how to pass parameters to it, converting these parameters to their expected data type when needed (remember that parameters passed to a console application are of the String type).

However, even though a console application is at the heart of a CLI application, a CLI application is more than just a console application. A CLI application contains named parameters, switches, and subcommands to achieve the intended goal.

Armed with our knowledge of creating console applications, we’ll build on top of that to learn how to create a CLI application.

To do so, in this chapter, we’ll cover the following topics:

  • Creating the console application
  • Parsing the arguments of a console application
  • From console to CLI: parsing the arguments using an existing library

By the end of the chapter, you will learn how to start with a simple console application and convert...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Building CLI Applications with C# and .NET
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon