I am using T4 templating to generate some .config files in the project I'm working on.
I set up a pre-build task to search for all .tt files in the solution directory, and then ran the TextTransform command-line tool so that the code was just generated for each build.
However, I now have "Access Denied" errors, because (for example), when he tries to execute TextTransform in the Web.UAT.tt file, the Web.UAT.Config file is under source control in TFS, and is thus protected from the record.
Usually I selected the .Config file in Visual Studio and did File-> Source Control-> Exclude From Source Control. Unfortunately, this does not look like an option for any file that appears as "attached" under 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 on how I can exclude lower level file attachments from Source Control, but keep the upper levels?
Thanks!
version-control tfs visual-studio-2008 t4
Neild
source share