CentralisedPackageConverter icon indicating copy to clipboard operation
CentralisedPackageConverter copied to clipboard

smaller EXE

Open tmrony opened this issue 1 year ago • 3 comments

This is a real life saver to convert a solution with 100+ projects.

However, the release/artifacts is kind of bloated with all those dlls and extra files. It would be nice to have as a single EXE tool to put in the bin folder and execute like any other utility shell programs out there (lsd, fd, fzf, etc)

tmrony avatar Nov 11 '24 15:11 tmrony

Good idea.

Webreaper avatar Nov 11 '24 16:11 Webreaper

Had a quick look, but to enable single file execution and trimming, you need to specify a runtime identifier. I don't know if deploying a dotnet tool supports that (because presumably dotnet tool install needs to run everywhere.

It may be possible to build for MacOs, Windows and Linux, and then deploy all 3, but I don't have time to investigate that at the moment.

I'd suggest if you want a single-Exe version for a particular arch, that you fork and build with publishSingleFile=true in the csproj.

Webreaper avatar Nov 12 '24 10:11 Webreaper

Could you build once for dotnet tool, and once for github download? It would be a hair more convenient if I didn't have to build it myself, and that could allow you to support both scenarios without too much hassle.

celluj34 avatar Jul 16 '25 23:07 celluj34