-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feature request, compile dotnet to one self contained executable file #8762
Comments
executable file “”dotnet”,'dotnet.exe' looks like "java.exe" "jave", It is freak,Whether it is linux or windows, the process is a bunch of dotnet or java,After the deployment of dozens of folders or even hundreds of dll. |
Also related:
|
@dasMulli It seems that Microsoft did not think good? Or can not publish? |
If you are wondering, it is possible to create a self contained executable file with CoreRT, here is how:
I have tested with a Hello World program on macOS 10.12:
Beware, use
Basic Hello World:
Publish with the ILCompiler (mine was built in
The file is a standalone 14 MB native macOS executable that writes Hello World! 🎉
Now, it would be nice to have this feature builtin to the .NET Core SDK, without having to build the ILCompiler and tweak the csproj file. @livarcocc: How do the .NET Core team envision this feature? Integrating CoreRT in the .NET Core SDK? Something else? |
@0xced We have recently started publishing NuGet packages for CoreRT. These packages integrate with .NET Core SDK. Take a look at our samples: https://github.com/dotnet/corert/tree/master/samples/WebApi If you have any additional feedback about this, CoreRT repo is the best place for it. |
For those interested, thanks to @0xced and @jkotas I created a simple example that's a bit easier now that |
...and I just found there was already a hello world example out there on the CoreRT repo. Doh! |
This is a feature request. The current dotnet build result (even self contained build) will output a executable file and much more dll.
Can we built them all in one single executable file?
golang/rust can build into one executable file(which good for redistribute). hope dotnet have the same ability
The text was updated successfully, but these errors were encountered: