How to specify template class visibility for a T4 preprocessed template?

I have started adding some preprocessed T4 templates to a VS2010 C# library project. They are implementation details only, and I would prefer to not have them exposed on the library's API. I have not found a way to set the template's generated class visibility to 'internal'.

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

Thanks in advance,

/AI/


Aethon, Unfortunately there is no way to do this today short of post-processing the generated code in some fashion.

I'm looking at adding this for a future release of Visual Studio. If you wanted to log a Connect issue for this, that would be helpful.


VS2012在模板上的visibility="internal"

链接地址: http://www.djcxy.com/p/49418.html

上一篇: 仍在积极维护的Ruby游戏框架?

下一篇: 如何为T4预处理模板指定模板类的可见性?