title: Put the knife down and take a green herb, dude. |
descrip: One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com Using 89% of the same design the blog had in 2001. |
FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white. As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green. |
|
Friday, February 19, 2021 | |
One thing that’s more esoteric than it should be is how to create a good command-line application on macOS, or at least it is for the languages I know, which don’t [really] include C.
I did briefly consider writing it in Swift, but it turns out C# is pretty easy but only if you know the right incantation. The key was finding the term `dotnet publish` (a link to which I found here). But then I needed a little more help to know the precise (or at least one precise) string of characters:
Thank heavens. Thanks again, random StackOverflow answerer. In case you missed it, that means you type this:
...in the same directory as your sln file and then you call the exe that you created (almost certainly without the exe extension) from the publish folder: /usr/local/share/dotnet/myApp/bin/Debug/netcoreapp3.1/osx.10.13-x64/publish/myApp And now you've got a self-contained, macOS specific executable. (I'm doing this to see how much trouble it'd be to write a macOS version of the Chutzpah JavaScript test runner on macOS. The VS Code extension is cross platform, almost by accident, but there's no equivalent for the "real" Windows version of Chutzpah exe that the extension, itself simply a pass-through runner, must call. Shouldn't be tough to recreate, though, at least for the "80%" use cases.) Labels: c#, macOS, noteToSelf, testing posted by Jalindrine at 2/19/2021 03:08:00 PM |
|
| |
MarkUpDown is the best Markdown editor for professionals on Windows 10. It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support. Features you won't find anywhere else include...
You've wasted more than $15 of your time looking for a great Markdown editor. Stop looking. MarkUpDown is the app you're looking for. Learn more or head over to the 'Store now! |
![]() |
|
|