5 ms·
General usage is as in this short video: https://streamable.com/3oqxhf https://streamable.com/3oqxhf `QueryGeneratorTestUtil.GenerateCompileAndAssert` internal
by dgpy 3y ago
General usage is as in this short video:
https://streamable.com/3oqxhf https://streamable.com/3oqxhf
`QueryGeneratorTestUtil.GenerateCompileAndAssert` internally uses
`Microsoft.CodeAnalysis.CSharp.CSharpCompilation.Create()` and `Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.Create()`. I get an interactive, debuggable source generator development environment this way.
Same as you, initially I used "comments as debugging" hacks but above way is way more efficient.