Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖
Beep

Chris Sienkiewicz chsienki

🤖
Beep
View GitHub Profile
@chsienki
chsienki / ConsoleApp18.csproj
Created Dec 12, 2020
Debuggable runtime generator
View ConsoleApp18.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis" Version="3.8.0" />
</ItemGroup>
@chsienki
chsienki / .gitconfig
Created Sep 15, 2020
Git MRU Branches
View .gitconfig
[alias]
mru = "!git log -g -n 1000 --format=\"%gd %gs\" --date=relative HEAD@{now} | grep checkout | grep \" to\" | sed 's/HEAD@{\\(.*\\)}.* to\\(.*\\)/(\\1)\\t\\2/' | awk -v OFS=' ' '!x[$NF]++' | head -n 15 | column -ts $'\\t'" -R 1
@chsienki
chsienki / GeneratorTests.cs
Last active Sep 5, 2021
Framework for unit testing generators
View GeneratorTests.cs
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using System.Collections.Immutable;
using System.Linq;
using System.Reflection;
using Xunit;
namespace GeneratorTests.Tests
{
public class GeneratorTests