문제

I am looking at the Roslyn September 2012 CTP with Reflector, and I noticed the following:

[ContentType("HTML")]
[Export(typeof(IVsTextViewCreationListener))]
[Export(typeof(IWpfTextViewCreationListener))]
[Export(typeof(VenusTextViewManager))]
[TextViewRole("PRIMARYDOCUMENT")]
internal sealed class VenusTextViewManager : IVsTextViewCreationListener, IWpfTextViewCreationListener
{
    // ...
}

Why is "HTML" passed into the constructor of ContentTypeAttribute, since Roslyn is for C# and VB.NET? Is it that the HTML implies some sort of rich text formatting? Or perhaps this is to support markup for the ASP.NET Razor engine?

도움이 되었습니까?

해결책

As you guessed, this is for support of aspx and cshtml/vbhtml files. We're hoping to find a better way to deal with the issues this class currently handles in a future release though.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top