I have encountered a few issues when working with STSDEV under source control and if you are not aware of those issues, you might end up wasting a lot time trying to figure out what is going wrong.
Updating the targets file
When changing the target file, you would think the changes would instantly take effect but they don’t. For example, the path of your STSDEV might be different from the path your colleague has so naturally , you would go and update it properly so that is works in your environment:
For changes to take effect, you have to make sure you unload the project (after saving your targets file):
and reload it:
I have stared at the screen for a while wondering why STSDEV was breaking when everything seemed in order in the targets file.
Read only deployment files
Make sure that the deployment files can be modified before you build your project.
Check the targets file and SolutionConfig.xml out to you:
Go to your the folder where your deployment files are located and verify that none of the files are set to "Read only".
Then go ahead and build your project and STSDEV will properly update any deployment files.