This project is read-only.

Multiple template directives

Feb 4, 2011 at 10:32 AM

I have Templates that include other templates, and each of these has to have a template directive to set the template language to VB. I then get a multiple template directives were found in the template warning. If I remove the template directives from the include files, the transforms doesn't happen (as it seems to be expecting C# code by default. So, question is: 1. Can I turn off that warning somehow? 2. Is there any way to change the default language to C# so I don't need template directives?

Feb 13, 2011 at 6:07 PM

Included template files should not be transformed themselves. I would clear the Custom Tool property for these files. That way a single template directive in the "master" file will not cause warnings and only the master file will be transformed.