Skip to content

Instantly share code, notes, and snippets.

@cartermp
Created April 29, 2020 18:42
Show Gist options
  • Save cartermp/e693b28eb651048fe3e067c853cfd81a to your computer and use it in GitHub Desktop.
Save cartermp/e693b28eb651048fe3e067c853cfd81a to your computer and use it in GitHub Desktop.
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