Reputation: 4989
I'm fairly new to C#. I'm trying to write and deploy a small command line app that relies on the CommandlineParser library: http://commandline.codeplex.com
There are no errors when building it and surprisingly enough the program there are no errors when executing the exe either. However, when I copy the exe file to another location on my computer and try to run it, it complains that it doesn't find the commandlineparser dependency.
I'm using VS2012 and tried the build as well as the debug version. The same error occurs both times.
Is there a way to include the commandlineparser library into the exe? If not, which file(s) would I have to combine to the exe file?
Sorry if these questions are too simple.
Upvotes: 2
Views: 13883
Reputation: 5375
You'll have to copy the library itself as well to any location you want to run the executable. If your idea is to have them packed in one file you'll have to use a tool in order to merge them, see:
https://stackoverflow.com/a/4043653/812598
Upvotes: 3