First, adding an app.config file is just as easy as adding any other file, How to: Add an Application Configuration File to a C# Project
Then you just have to add that code snippet above to that new app.config.
Another way of setting that property via code, avoiding the need for an app.config is shown here or here.