-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathFastGenericNew.SourceGenerator.csproj
More file actions
62 lines (54 loc) · 2.67 KB
/
FastGenericNew.SourceGenerator.csproj
File metadata and controls
62 lines (54 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<Project Sdk="Microsoft.NET.Sdk">
<!-- Library Properties -->
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>11.0</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsRoslynComponent>true</IsRoslynComponent>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IncludeBuildOutput>false</IncludeBuildOutput>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);_AddAnalyzersToOutput</TargetsForTfmSpecificContentInPackage>
<DevelopmentDependency>true</DevelopmentDependency>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>_generated</CompilerGeneratedFilesOutputPath>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
</PropertyGroup>
<ItemGroup>
<Compile Remove="$(CompilerGeneratedFilesOutputPath)\**" />
<None Include="$(CompilerGeneratedFilesOutputPath)\**" />
</ItemGroup>
<!-- The following libraries include the source generator interfaces and types we need -->
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.7.0" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.2" />
<ProjectReference Include="..\FastGenericNew.SourceGenerator.InternalGenerator\FastGenericNew.SourceGenerator.InternalGenerator.csproj">
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
<AdditionalFiles Include="FastGenericNew.SourceGenerator.props" />
</ItemGroup>
<!-- Nuget Package Properties-->
<PropertyGroup>
<PackageId>FastGenericNew.SourceGenerator</PackageId>
<DescriptionPrefix>
Configurable Source Generator
Minimum requirement: .NET Standard 2.0 & C# 8.0
</DescriptionPrefix>
<PackageTagsPostfix>Roslyn, DotNetAnalyzers, Analyzer, SourceGenerator, SourceGeneratorV2, IncrementalGenerator</PackageTagsPostfix>
</PropertyGroup>
<!-- Imports -->
<Import Project="../FastGenericNew.Shared.props" />
<Target Name="_AddAnalyzersToOutput">
<ItemGroup>
<TfmSpecificPackageFile Include="$(OutputPath)\FastGenericNew.SourceGenerator.dll" PackagePath="analyzers/dotnet/cs" />
<TfmSpecificPackageFile Include="FastGenericNew.SourceGenerator.props" PackagePath="build" />
<TfmSpecificPackageFile Include="install.ps1" PackagePath="tools" />
<TfmSpecificPackageFile Include="uninstall.ps1" PackagePath="tools" />
</ItemGroup>
</Target>
</Project>