Skip to content

weknow-network/incremental-source-gen-playground

Repository files navigation

Playground for incremental source generators

Attach to project reference

Add: ReferenceOutputAssembly="false" OutputItemType="Analyzer" to the ProjectReference entry

<ItemGroup>
  <ProjectReference Include="xxx.csproj" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
</ItemGroup>

Properties of the Genetator code:

	<PropertyGroup>
		<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
		<IncludeSource>True</IncludeSource>
		<IncludeSymbols>True</IncludeSymbols>
		<GenerateDocumentationFile>True</GenerateDocumentationFile>
		<EnableNETAnalyzers>True</EnableNETAnalyzers>
		<!--<AnalysisLevel>6.0-all</AnalysisLevel>-->
	</PropertyGroup>
	<PropertyGroup>
		<TargetFramework>netstandard2.0</TargetFramework>
		<LangVersion>10</LangVersion>
		<Nullable>enable</Nullable>
		<IsRoslynComponent>true</IsRoslynComponent>
		<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
		<CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath>
		<IsRoslynComponent>true</IsRoslynComponent>
		<IncludeBuildOutput>false</IncludeBuildOutput>
	</PropertyGroup>

Project configuration (for debug)

Debug

Templates

Practical

Sample

More

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages