Try this out.
In release mode, go to project properties. In Build option, below is Advanced button. when you click on that one popup will be opened. In that, under output section, there will be listbox containing value pdb-only.... change that value to none.