问题
I have two classes:
[TypeScriptModule("commands")]
public class ClientCommand : VoidCommand
{
public string CommandType { get; set; }
}
and
[TypeScriptModule("commands")]
public class PublishEvent : ClientCommand
{
public string Description { get; set; }
public string AnotherProperty { get; set; }
}
When I use the WebEssentials "Create Typescript Intellisense file" command on these files, the one generated for PublishEvent doesn't include an "extends ClientCommand" expression.
A quick scan of the WebEssentials code suggests that this ought to work, but I'm obviously missing something. Any ideas what?
回答1:
Make sure you are using the latest version of WebEssentials. This feature didn't work in WebEssentials 2.0, but does work without any further changes need in version 2.3
来源:https://stackoverflow.com/questions/25325553/how-do-i-get-interface-inheritance-working-correctly-when-generating-webessentia