I\'m not very familiar with post-build events, so I\'m a little confused as to what\'s going wrong with my program. When compiling in visual studio 2010, I get the following
If any other solution is in the debug mode then first stop them all and after that restart the visual studio. It worked for me.