Compile a. NET application into a self-contained executable

Asked

Viewed 192 times

1

I wondered if it is possible to compile an application . NET Framework in just one executable file. No files .dll outsiders.

I did some research but was unsuccessful.

  • 1

    In this case, I believe that the ideal is to mount an installer.

  • @Robertodecampos is what we do these days. I wanted to compile a new application in just one file to make it easier to deliver it to the old application. The two will work together.

  • See if it helps you: http://www.andrealveslima.com.br/blog/index.php/2014/11/27/criando-instaladores-para-aplicativos-net/

  • @Barbetta We currently use the Inno Compiler cited in the article.

  • 1

    In hand: http://codeblog.larsholm.net/2011/06/embed-dlls-easily-in-a-net-assembly/

  • Whoa, I’m gonna test this.

  • @Gabrielferreira Did any of the answers solve your question? Do you think you can accept one of them? Check out the [tour] how to do this, if you haven’t already done so. You would help the community by identifying what was the best solution for you. You can accept only one of them. But you can vote on any question or answer you find useful on the entire site (when you have enough score).

Show 2 more comments

2 answers

1

0

You can use the Costura to join all app dependencies into one .exe.

Just add to your project, that when installing the package, a file .xml with the fusion configuration and a new import at the .csproj who brings the targets that the Costura needs to merge the application during the compilation phase.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.