I created a CLI tool using dotnet core framwork and I want to run it form the console as:
$ candyapp --arg1 some-value
I run it now by going to the location where the dll file is by uing:
$ dotnet candyapp.dll candyapp --arg1
Can anyone help me install my application and use it on my mac?
Right click the Console App Project and select Publish. Then change Deployment Mode to Self-contained or Framework dependent. . NET Core 3.0 introduces a Single file deployment which is a single executable. Use "framework dependent" if you know the target machine has a .
Use the run command line args of the dotnet app.
dotnet run [-c|--configuration] [-f|--framework] [--force] [--launch-profile] [--no-build] [--no-dependencies] [--no-launch-profile] [--no-restore] [-p|--project] [--runtime] [[--] [application arguments]]
For more info, please see dotnet cli
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With