1

Possible Duplicates:
Compile to stand alone exe for C# app in Visual Studio 2010
.Net whole application as a single .exe file ?

Heey Guys,

so i have a C# Solution that connects to Database and i want to deploy this solution into a single .Exe file. like NotePad , in a way that makes me able to send the exe file and then double click it and it starts running ..

how can i do something like that ??

Community
  • 1
  • 1
3oon
  • 365
  • 1
  • 5
  • 15
  • 2
    I checked that one, and it doesn't mention ILMerge (the alleged dup is asking about how to get the .exe, not about merging them into one file). I think this question needs to stand. – Kirk Woll Dec 10 '10 at 17:22
  • 1
    @Kirk Woll well, it was between that one or http://stackoverflow.com/questions/3261942/net-whole-application-as-a-single-exe-file this one (which does mention ILMerge) when I was voting, I think it's still a dupe – Daniel DiPaolo Dec 10 '10 at 17:27
  • @Daniel, agreed. I just didn't think it was a dup of that *specific* one. :) Voted to close. – Kirk Woll Dec 10 '10 at 17:39
  • any concerns about the .NET framework being required? – H H Dec 10 '10 at 17:39

3 Answers3

5

I think ILMerge is what you want. However, reflection can ruin its day.

Kirk Woll
  • 76,112
  • 22
  • 180
  • 195
0

Yeah, ILMerge is great if you aren't using reflection. It merges a set of assemblies into a given primary assembly.

Joshua Evensen
  • 1,544
  • 1
  • 15
  • 33
0

I use DeepSea obfuscator (commercial product) to obfuscate and merge the output assemblies from several projects into a single assembly (.exe or .dll).

Marnix van Valen
  • 13,265
  • 4
  • 47
  • 74