I have a console application and two class library projects.
The console application has to project references to the class library projects.
When I build, it generates DLLs for these two projects. Do I have to include these with my console applications exe file? Is there a way I can make it so I don’t have to include these 2 dlls?
Ideally, I’d like to have a single exe.
You must include any referenced assemblies as they are dependencies of your application.
That being said, however, Microsoft offers a tool called ILMerge that will allow you combine the dependency assemblies with your executable to create one, all-inclusive, executable assembly that you can ship to customers.