I want to simply publish my .NET application into a folder without any debug files, any debug information in the executable, any installer like OneClick or Wix and as optimized as possible. How can I achieve this in Visual Studio 2013?
On the Properties|Build tab there is an advanced button that brings up the Advanced Build Settings dialog. You can set the Debug Info to "none". However, if you have published to the location prior to setting this flag the pdb's from the last build are not automatically removed and will remain there.