-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
68 lines (57 loc) · 2.86 KB
/
Directory.Build.props
File metadata and controls
68 lines (57 loc) · 2.86 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
<Project>
<!-- Shared build properties for all projects in the solution -->
<PropertyGroup>
<!-- Operating system detection for conditional compilation -->
<IsMac>$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::get_OSX())))</IsMac>
<IsWindows>$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::get_Windows())))</IsWindows>
<IsLinux>$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::get_Linux())))</IsLinux>
</PropertyGroup>
<PropertyGroup>
<!-- Language settings -->
<LangVersion>14</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Features>strict</Features>
<!-- Code analysis -->
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<!-- Warnings configuration -->
<NoWarn>$(NoWarn);CS1701;CS1702;NU1900</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- Build settings -->
<Deterministic>true</Deterministic>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
<!-- Package metadata (shared across all packable projects) -->
<PropertyGroup>
<Authors>Mistruna</Authors>
<Copyright>Copyright © Mistruna $([System.DateTime]::Now.Year)</Copyright>
<PackageProjectUrl>https://github.com/mistruna/Mistruna.Core</PackageProjectUrl>
<RepositoryUrl>https://github.com/mistruna/Mistruna.Core</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>mistruna_128x128.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>mistruna;asp.net;core;sdk;microservices</PackageTags>
<!-- Symbol package settings -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<!-- Documentation -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Versioning with MinVer -->
<MinVerTagPrefix>v</MinVerTagPrefix>
<!-- CI/CD settings -->
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
<ContinuousIntegrationBuild Condition="'$(TF_BUILD)' == 'true'">true</ContinuousIntegrationBuild>
</PropertyGroup>
<!-- Source Link for debugging -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>
<!-- MinVer for automatic semantic versioning -->
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<PackageReference Include="MinVer" Version="6.0.0" PrivateAssets="All" />
</ItemGroup>
</Project>