Quantcast
Channel: Coding4Fun Blog - Channel 9
Viewing all articles
Browse latest Browse all 453

dotnet CLI Tool Build Redux

$
0
0

Last year we highlighted creating your own dotnet CLI tools, Do you dotnet cli? Here's how you can add your own tools...

Given how much has changed since then, it's time for an updated look at that.

Good thing Tom DuPont has that covered in this post (And boy, does he make it look easy! :)

How to make a dotnet CLI Tool

Good news, everyone! It is remarkably easy to make a new dotnet CLI (Command Line Interface) tool! I recently created a CLI tool for one of my new projects, Tact.NET RPC, and in this post I will be referencing that project as my example.

The Basics

Step 1) Create your CLI Console App ...
Step 2) Consume your CLI Tool NuGet Package ...

Development Tips

Here is a simple way to automate the creation and consumption of your CLI tool NuGet package during development.

Create a local package directory ...

Pack on post build ...

Execute on pre build ...

Increment version to update ...

[Click through to read the post and see the code]




Viewing all articles
Browse latest Browse all 453

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>