-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileAndContentTypes.cs
More file actions
25 lines (23 loc) · 857 Bytes
/
FileAndContentTypes.cs
File metadata and controls
25 lines (23 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Utilities;
namespace ConsoleCompare
{
/// <summary>
/// Defines content type and file extension for .simile files
/// See: https://learn.microsoft.com/en-us/visualstudio/extensibility/walkthrough-linking-a-content-type-to-a-file-name-extension?view=vs-2022
/// </summary>
internal static class FileAndContentTypes
{
// Disabling "field never assigned to" warning since it is actually used by the project
#pragma warning disable 649
[Export]
[Name("simile")]
[BaseDefinition("text")]
internal static ContentTypeDefinition SimileContentTypeDefinition;
[Export]
[FileExtension(".simile")]
[ContentType("simile")] // Must match definition above
internal static FileExtensionToContentTypeDefinition SimileFileExtensionDefinition;
#pragma warning restore 649
}
}