I’ve been working on automating a build on my new project for a while now and came across an interesting problem just before I was able to get the build to succeed.
I got this error:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Windows Azure Tools\1.6\Microsoft.WindowsAzure.targets (3356): Unable to copy file "ServiceDefinition.csdef" to "ServiceDefinition.build.csdef". Access to the path 'ServiceDefinition.build.csdef' is denied. [C:\Builds\…..
And after digging around I found that the ServiceDefinition.build.csdef file shouldn’t have been checked into TFS according to this thread or it needed to not be marked “read only” according to this blog entry. I renamed the files to *.old in source control for the two cloud projects in my solution and that did the trick. (I wanted to make sure before I deleted them that this was the actual problem)