Search code examples
c#visual-studio-2008.net-3.5executable

How to create a single executable file in Visual Studio 2008?


I've created a Windows Forms Application in Visual Studio 2008, .NET 3.5. Now I want to finalize my project, i.e. to create a single .exe file which I can give to someone and he will be able to run it on his computer.

In my project files I found bin/Debug directory where I see a .exe file. Can I just use this file as is, or I am missing some important finalizing procedure ?

Thanks !


Solution

  • You can just take the EXE as long as it has no dependencies. If there are any dll files in there, you need to include them (or use the ILMerge command line utility to combine them). You can, however, ignore any generated pdb or xml files.

    As a side note, you should be compiling in release if you plan on deploying your project (the output will be in bin/Release)