-
Notifications
You must be signed in to change notification settings - Fork 2
/
Directory.Build.props
76 lines (67 loc) · 2.61 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
<Project>
<!-- General Properties -->
<PropertyGroup>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>preview</LangVersion>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
</PropertyGroup>
<!-- Unit Test Properties -->
<Choose>
<When Condition="$(MSBuildProjectName.Contains('Test'))">
<PropertyGroup>
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
</PropertyGroup>
</When>
<Otherwise>
</Otherwise>
</Choose>
<!-- XML Documentation -->
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<!-- Analyzer Properties -->
<PropertyGroup>
<AnalysisLevel>8</AnalysisLevel>
<AnalysisMode>All</AnalysisMode>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<NoWarn>$(NoWarn),S1133</NoWarn>
</PropertyGroup>
<!-- Global Packages -->
<ItemGroup>
<PackageReference Include="SonarAnalyzer.CSharp" Condition="$(MSBuildProjectExtension) == '.csproj'">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- Metadata Variable -->
<PropertyGroup>
<CurrentYear>$([System.DateTime]::UtcNow.Year)</CurrentYear>
</PropertyGroup>
<!-- Assembly Metadata -->
<PropertyGroup>
<Authors>MAA Team</Authors>
<Owners>MAA Team</Owners>
<Company>MAA Assistant Arknights</Company>
<Copyright>Copyright © 2021-$(CurrentYear) MAA Team and Contributers. All rights reserved.</Copyright>
<NeutralLanguage>zh-CN</NeutralLanguage>
</PropertyGroup>
<!-- NuGet Package Metadata -->
<PropertyGroup>
<Version Condition="'$(Version)' == ''">1.0.0-dev</Version>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
<PackageIcon>maa-logo_128x128.png</PackageIcon>
<PackageReleaseNotes>Release notes are at https://github.com/MaaXYZ/MaaFramework.Binding.CSharp/releases.</PackageReleaseNotes>
<RepositoryUrl>https://github.com/MaaXYZ/MaaFramework.Binding.CSharp</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<RepositoryBranch>$(RepositoryBranch)</RepositoryBranch>
<RepositoryCommit>$(RepositoryCommit)</RepositoryCommit>
</PropertyGroup>
<ItemGroup>
<None Visible="false" Include="..\Common\PackageFiles\**" Pack="true" PackagePath="\" />
</ItemGroup>
</Project>