我正在使用Reflector查看Roslyn September 2012 CTP,我注意到以下内容:
[ContentType("HTML")]
[Export(typeof(IVsTextViewCreationListener))]
[Export(typeof(IWpfTextViewCreationListener))]
[Export(typeof(VenusTextViewManager))]
[TextViewRole("PRIMARYDOCUMENT")]
internal sealed class VenusTextViewManager : IVsTextViewCreationListener, IWpfTextViewCreationListener
{
// ...
}
为什么"HTML"
传递给ContentTypeAttribute的构造函数,因为Roslyn是用于C#和VB.NET的?这是HTML暗示某种丰富的文本格式吗?或许这是为了支持ASP.NET Razor引擎的标记?
答案 0 :(得分:0)
正如您所猜测的,这是为了支持aspx和cshtml / vbhtml文件。我们希望找到一种更好的方法来处理此类目前在未来版本中处理的问题。