1
0
This repository has been archived on 2025-10-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
MapperSourceGenSample/src/MapperSourceGen.SourceGenerator/MapperSourceGen.SourceGenerator.csproj
2025-07-21 13:43:39 -04:00

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>