-
-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
96 lines (81 loc) · 4.03 KB
/
Copy pathDirectory.Build.props
File metadata and controls
96 lines (81 loc) · 4.03 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<Project>
<PropertyGroup>
<_NormalizedProjectDir>$(MSBuildProjectDirectory.Replace('\', '/'))</_NormalizedProjectDir>
<_NormalizedRepoDir>$(MSBuildThisFileDirectory.Replace('\', '/'))</_NormalizedRepoDir>
<IsDeliverable Condition="'$(MSBuildProjectExtension)' == '.csproj' and $(_NormalizedProjectDir.StartsWith('$(_NormalizedRepoDir)src/'))">True</IsDeliverable>
</PropertyGroup>
<!-- Building -->
<PropertyGroup>
<BaseOutputPath>$(MSBuildThisFileDirectory)build/bin/$(MSBuildProjectName)/</BaseOutputPath>
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)build/obj/$(MSBuildProjectName)/</BaseIntermediateOutputPath>
<PackageOutputPath>$(MSBuildThisFileDirectory)build/artifacts/packages</PackageOutputPath>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<!-- Packaging -->
<PropertyGroup>
<Company>Tim Potze</Company>
<Authors>Tim Potze</Authors>
<Copyright>Copyright (c) Tim Potze 2014-$([System.DateTime]::UtcNow.ToString(yyyy))</Copyright>
<NeutralLanguage>en-GB</NeutralLanguage>
</PropertyGroup>
<PropertyGroup Condition="'$(IsDeliverable)' == 'True'">
<PackageProjectUrl>https://github.com/ikkentim/SampSharp</PackageProjectUrl>
<PackageIcon>sampsharp.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>gta samp sampsharp</PackageTags>
<PackageId>$(AssemblyName)</PackageId>
<Product>$(AssemblyName)</Product>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<ItemGroup Condition="'$(IsDeliverable)' == 'True'">
<None Include="$(MSBuildThisFileDirectory)\art\sampsharp.png" Pack="true" PackagePath="\" />
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<PropertyGroup Condition="'$(IsDeliverable)' != 'True'">
<IsPackable>false</IsPackable>
</PropertyGroup>
<!-- Versioning -->
<PropertyGroup Label="Versioning">
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>dev</VersionSuffix>
</PropertyGroup>
<PropertyGroup Condition="'$(CiVersion)' != ''" Label="Versioning CI">
<VersionPrefix>$(CiVersion.Split('-', 2)[0])</VersionPrefix>
<VersionSuffix></VersionSuffix>
<VersionSuffix Condition="$(CiVersion.Contains('-'))">$(CiVersion.Split('-', 2)[1])</VersionSuffix>
</PropertyGroup>
<!-- Analyzers -->
<PropertyGroup Condition="'$(IsDeliverable)' == 'True'">
<!-- Enable .NET built-in analyzers, which check for performance, security, and style issues. -->
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<!-- What -->
<AnalysisMode>Recommended</AnalysisMode>
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
<!-- Severity -->
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
<!-- When -->
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
</PropertyGroup>
<!-- Analyzer helpers -->
<ItemGroup Condition="'$(IsDeliverable)' == 'True'">
<Compile Include="$(MSBuildThisFileDirectory)external/jetbrains/Annotations.cs" Link="_external\Annotations.cs" />
</ItemGroup>
<!-- Symbols / source linking -->
<PropertyGroup Condition="'$(IsDeliverable)' == 'True'">
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
</Project>