Created
April 19, 2013 15:16
-
-
Save sharwell/5421032 to your computer and use it in GitHub Desktop.
Simple example to export the `ContentTypeDefinition`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel.Composition; | |
using Microsoft.VisualStudio.Utilities; | |
public static class ExampleDefinitions | |
{ | |
/* The language name (used for the language service) and content type must be the same | |
* due to the way Visual Studio internally registers file extensions and content types. | |
*/ | |
[Export] | |
[Name("Example")] | |
[BaseDefinition("code")] | |
private static readonly ContentTypeDefinition ExampleContentTypeDefinition; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment