4 ms·
I followed the steps here. Do you happen to know how to build the command-line app in to an executable? I was able to run it with 'dnx run', but not sure how
by soccerdave 11y ago
I followed the steps here. Do you happen to know how to build the command-line app in to an executable?
I was able to run it with 'dnx run', but not sure how to build it
- edgyswingset 11y agoYou have to use dnu. To restore packages: $ dnu restore To build: $ dnu build To run: $ dnx run To run some other command: $ dnx <COMMAND_HERE>
- soccerdave 11y agoI was able to use 'dnu build', but that looks like it builds a dll and places it in a folder. I was curious if it's possible to build a single executable (similar to go) that can be run. Also, 'dnx run' is slightly slow so I wanted to see if the performance hit was less after building an exe.
- edgyswingset 11y agoAh! What you're looking for is dotnet/cli[0]. [0] https://github.com/dotnet/cli https://github.com/dotnet/cli
- shanselman 11y agoSoon, but not quite yet. you'll be able to "dotnet compile" in a folder and that'll make stuff, and then "dotnet compile --native" will give you a single linked executable.