I'm using Visual Studio 2013
I just made my first windows app with it (a windows forms) and, if its possible, I would like to embed the libraries and config/manifest etc files into a single executable file, for more convenience. Can it be done? If so how?
Thanks a lot
You should not be deploying all the files in the bin\Release folder anyway. The vshost files are for debugging within Visual Studio, they should not be deployed. The pdb file is for debugging and does not need to be deployed. If your application doesn't use the config file for anything you don't need to deploy it. You will need to deploy any additional assemblies though, which you may be able to solve using ILMerge.
Having said that, my recommendation would be to either create an installer or create a self-executing archive (zip or 7z) over trying to use ILMerge to get any third-party assemblies deployed with your application.
UPDATE
Just to be clear, here's a list of files from a default WinForms app to which I added JSON.NET (Release build):
If the app doesn't use the config file, the only files you need to deploy are Newtonsoft.Json.dll
and WindowsFormsApplication1.exe
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With