[dsc] Fixed IOExceptions when run as a VS build event
[project] Automatically build samples using build.bat