Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smaller EXE #53

Open
tmrony opened this issue Nov 11, 2024 · 2 comments
Open

smaller EXE #53

tmrony opened this issue Nov 11, 2024 · 2 comments

Comments

@tmrony
Copy link

tmrony commented Nov 11, 2024

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)

@Webreaper
Copy link
Owner

Good idea.

@Webreaper
Copy link
Owner

Webreaper commented Nov 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants