Remco;5227 wrote:
If writing a script to do this in your build process ends up being particularly untidy, you might want to look at MSBuild's item batching features. It's possible to create a custom MSBuild target that can batch compiled files over to command-line invoke or custom build task to set the read-only flag.
I might try that. I'm currently throwing together an .EXE which just recursively searches for .H/.C/.CPP and sets the read-only bit. Not quite in the spirit of msbuild, but I can't summon any shame over that...