How do I specify the visibility of a template class for a pre-processed T4 template?

I started adding some pre-processed T4 templates to the VS2010 C # library project. These are just implementation details, and I would prefer that they not appear in the library API. I did not find a way to set the transparency of the visible template class to "internal".

Is there any way? (If there is, I assume it will be something obvious that I missed)

Thanks in advance,

/ AI /

+7
source share
2 answers

Aethon, Unfortunately, today there is no way to do this without post-processing the generated code.

I want to add this for a future version of Visual Studio. If you want to register Connect for this, that would be helpful.

0
source

VS2012 has visibility="internal" in the template.

+4
source

All Articles