if you are using multi projects in your solution , try build them separate one by one (right click on each project and click on build)