简体   繁体   中英

Compile .net app to single exe

I'm wondering is there any way using tooling of todays .NET for compiling app to single exe? Couple years ago when I read about .Net Native it was promising for compilation that gives all necessary code in app without .net framework and using some tree shaking mechanism compile to single file with only the code that is actually used by application. Is this actually doable now? I now that WPF and Winforms are coming in .NET core 3.0 but is this possible to create such application in UWP?

Yes, this has been supported in UWP for a while. In VS, check this box to compile everything into one big binary:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM