How do I compile my App.config into my exe in a VS2010 C# console app?

You can’t. Half the point of such config files is to allow changes to the configuration of the app outside of the app itself.

You would simply have to modify your program so that it didn’t have a dependency on the app config file — easiest way to do that would be to just stick the values inside your config into read only global variables.

Leave a Comment