The build configuration cannot be changed while projects are building or deploying.

   

The Microsoft development environment cannot change the configuration (either debug or release) while building or deploying. Wait until your build or deployment is complete, then change your configuration.