Search code examples
visual-studio-2010t4texttemplate

Clearing Custom Tool file property in Visual Studio 2010


Is there any way to prevent prevent a custom tool from running or remove the custom tool for a file type per project in Visual Studio? In my example I would like to add a file to my project with an extension (.tt) that Visual Studio assoicates with the TextTemplatingFileGenerator. I would like to not have to go into the file properties and clear the Custom Tool property as well as clean up any work done by the single file generator that runs when adding the file to my project.


Solution

  • In the .csproj file where the file appears you can set Generator to be empty.