Skip to content

Instantly share code, notes, and snippets.

@wk-j
Created December 9, 2020 16:12
Show Gist options
  • Save wk-j/420ee926aa5ce4c16a1ea1588a8d9a09 to your computer and use it in GitHub Desktop.
Save wk-j/420ee926aa5ce4c16a1ea1588a8d9a09 to your computer and use it in GitHub Desktop.
.NET - Show source generator output
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
+ <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
+ <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)Generated</CompilerGeneratedFilesOutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\MyGenerator\MyGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment