32 lines
1.2 KiB
XML
32 lines
1.2 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<!--
|
|
Source generator projects must target .NET Standard 2.0 as the Roslyn SDK Compiler only supports this version
|
|
for compiler addons.
|
|
-->
|
|
<TargetFramework>netstandard2.0</TargetFramework>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- AnalyzerLanguage is set to cs to denote that only C# is supported by the source generator. -->
|
|
<AnalyzerLanguage>cs</AnalyzerLanguage>
|
|
|
|
<!-- EmitCompilerGeneratedFiles is set to true to ensure that the source generator can emit artifacts. -->
|
|
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
|
|
|
|
<!-- EnforceExtendedAnalyzerRules is set to true to enable additional rules for analyzers. -->
|
|
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
|
|
|
|
<!-- IsRoslynComponent is set to true to indicate that this project is a Roslyn component. -->
|
|
<IsRoslynComponent>true</IsRoslynComponent>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Microsoft.CodeAnalysis.CSharp is required for C# source generators. -->
|
|
<PackageReference Include="Microsoft.CodeAnalysis.CSharp"/>
|
|
</ItemGroup>
|
|
|
|
|
|
</Project>
|