I have some pre-processed T4 templates generating C# code – but the generated code causes compiler warnings like “Missing XML comment for publicly visible type or member …”.
To prevent the warnings, I would like to embed ‘#pragma warning disable 1591’ into the code generated by the T4 processor.
Is there some way that I can embed the pragma into my template so that it appears in the generated code ?
You can only set it at a project level in the project settings I’m afraid.
We’ve fixed that specific issue in Visual Studio 2012, so they should build warning clean.