What I want to do:

I have common code for utilities I will use in different programs. I want to store in one place, so that when code is improved (performance/remove bugs) all programs will be updated.

What I do now:

Common code is in a project. I make new programs as solutions, each with its own project code and also the common project code. Common code is compiled as a DLL which I reference/call from the main project, which is compiled as an exe.

Problem:

The common code is compiled as a DLL which I must distribute separately. Also, DLL can be called by other programs not written by me, using my cool utilities!

Solution?

What I want to do is to compile all the code in the solution to a single exe so the DLL is encapsulated and the distribution is a single exe. Seems VS can't do this from IDE. I think can do from command line - but that scares me!

Any way to compile together as exe from IDE? Or is there a better way to store 'common' code for various solutions/projects and stil gat a single exe at the end?

Thanks!

BG