I'm using T4 templating to generate some .config files in a project I'm working on.
I've set up a pre-build task to look for all .tt files in the solution directory, and then execute the TextTransform command-line tool, so that the code is freshly generated on each build.
However, I'm now having "Access Denied" errors because (for example) when it tries to execute TextTransform on the Web.UAT.tt file, the Web.UAT.Config file is under source-control in TFS, and thus write protected.
Ordinarily I would select the .Config file in Visual Studio, and do the File->Source Control->Exclude From Source Control thing. Unfortunately, this does not appear as an option for any file which shows up as "nested" beneath another file!
i.e. I can exclude web.tt, but not web.config... I can exclude default.aspx but not default.aspx.cs.
Does anyone have any ideas about how I can exclude the lower level nested files from Source Control, but keep the top level ones?
Thanks!