Created
April 29, 2020 18:42
-
-
Save cartermp/e693b28eb651048fe3e067c853cfd81a to your computer and use it in GitHub Desktop.
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 Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.Text; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Xml; | |
namespace MyGenerator | |
{ | |
[Generator] | |
public class MySourceGenerator : ISourceGenerator | |
{ | |
public void Execute(SourceGeneratorContext context) | |
{ | |
// TODO - actual source generator goes here! | |
} | |
public void Initialize(InitializationContext context) | |
{ | |
// No initialization required for this one | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment