Not that this was the best solution, but it will definitely work for what you want to do:
Put the below in the pre-build event
"$(VS100COMNTOOLS)..\IDE\devenv" "csproj location OR sln location" /Rebuild "configuration required if you have more than configuration ex: Debug|x64"
Jason pugh
source share