forked from ChilliCream/graphql-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
81 lines (68 loc) · 3.45 KB
/
Directory.Build.props
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<Project>
<PropertyGroup>
<LangVersion>preview</LangVersion>
<Version Condition="$(Version) == ''">0.0.0</Version>
<NoWarn>$(NoWarn);CS0436;RS0041</NoWarn>
</PropertyGroup>
<PropertyGroup>
<Product>Hot Chocolate</Product>
<Authors>ChilliCream authors and contributors</Authors>
<Company>ChilliCream</Company>
<Copyright>Copyright © 2021 ChilliCream (Michael & Rafael Staib)</Copyright>
<PackageLicenseUrl>https://github.com/ChilliCream/hotchocolate/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://chillicream.com</PackageProjectUrl>
<PackageReleaseNotes>Release notes: https://github.com/ChilliCream/hotchocolate/releases/$(PackageVersion)</PackageReleaseNotes>
<PackageTags>GraphQL ChilliCream</PackageTags>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageIconUrl>https://chillicream.com/resources/hotchocolate-signet.png</PackageIconUrl>
</PropertyGroup>
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<RepositoryUrl>https://github.com/ChilliCream/hotchocolate.git</RepositoryUrl>
<RepositoryType>GitHub</RepositoryType>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup>
<LibraryTargetFrameworks>net5.0; netcoreapp3.1; netstandard2.0</LibraryTargetFrameworks>
<!--LibraryTargetFrameworks>net6.0; net5.0; netcoreapp3.1; netstandard2.0</LibraryTargetFrameworks-->
<TestTargetFrameworks>net5.0; netcoreapp3.1</TestTargetFrameworks>
<!--TestTargetFrameworks>net6.0; net5.0; netcoreapp3.1</TestTargetFrameworks-->
</PropertyGroup>
<PropertyGroup>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
</ItemGroup>
<!-- PublicApiAnalyzers -->
<PropertyGroup>
<AddPublicApiAnalyzers Condition=" '$(AddPublicApiAnalyzers)' == '' AND !$(MSBuildProjectName.Contains('.Tests')) AND !$(MSBuildProjectName.Contains('.Resources')) ">true</AddPublicApiAnalyzers>
<AddPublicApiAnalyzers Condition=" '$(AddPublicApiAnalyzers)' == '' ">false</AddPublicApiAnalyzers>
<WarningsAsErrors Condition=" '$(RequireDocumentationOfPublicApiChanges)' != '' ">$(WarningsAsErrors);RS0016;RS0017;RS0024</WarningsAsErrors>
</PropertyGroup>
<ItemGroup Condition=" $(AddPublicApiAnalyzers) ">
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.2">
<ExcludeAssets>compile</ExcludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<Target Name="_CheckIgnoredPublicApiFiles"
BeforeTargets="Build;Restore"
Condition=" Exists('$(MSBuildProjectDirectory)\PublicAPI.Shipped.txt') AND ! $(AddPublicApiAnalyzers) ">
<Warning Text="Public API baseline files ignored." />
</Target>
<Target Name="_RemovePublicApiAnalyzer" BeforeTargets="RazorCoreCompile">
<ItemGroup>
<_PublicAPIAnalyzers Include="@(Analyzer->WithMetadataValue('NuGetPackageId','Microsoft.CodeAnalysis.PublicApiAnalyzers'))" />
<Analyzer Remove="@(_PublicAPIAnalyzers)" />
</ItemGroup>
</Target>
<Target Name="_RestorePublicApiAnalyzer" AfterTargets="RazorCoreCompile">
<ItemGroup>
<Analyzer Include="@(_PublicAPIAnalyzers)" />
</ItemGroup>
</Target>
</Project>