-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
89 lines (76 loc) · 3.29 KB
/
Copy pathDirectory.Build.props
File metadata and controls
89 lines (76 loc) · 3.29 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
<!-- Directory.Build.props - Centralized configuration for all CSharpEssentials packages -->
<Project>
<PropertyGroup>
<!-- Individual projects define their own TargetFrameworks -->
<LangVersion>preview</LangVersion>
<!-- .NET 11 Native Union Flag -->
<DefineConstants Condition="'$(TargetFramework)' == 'net11.0'">$(DefineConstants);CSHARP_ESSENTIALS_ENABLE_UNIONS</DefineConstants>
<!-- Use project references by default for development -->
<UseProjectReferences Condition="'$(UseProjectReferences)' == ''">true</UseProjectReferences>
<!-- Packaging -->
<IsPackable>true</IsPackable>
<IncludeBuildOutput>true</IncludeBuildOutput>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<!-- Compiler and analysis settings -->
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Optimize>true</Optimize>
<Deterministic>true</Deterministic>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<AnalysisMode>All</AnalysisMode>
<NoWarn>1591</NoWarn>
<WarningsNotAsErrors></WarningsNotAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Package metadata -->
<Authors>senrecep</Authors>
<Company>senrecep</Company>
<Copyright>Copyright © senrecep 2024-2026</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/senrecep/CSharpEssentials</PackageProjectUrl>
<PackageIcon>icon.png</PackageIcon>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/senrecep/CSharpEssentials</RepositoryUrl>
<RepositoryBranch>main</RepositoryBranch>
<!-- Version management -->
<Version>3.2.3</Version>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<FileVersion>3.2.3.0</FileVersion>
<!-- Documentation -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<!-- Source Link -->
<PropertyGroup>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- Static analysis -->
<ItemGroup Condition="'$(MSBuildProjectExtension)' != '.dcproj'">
<PackageReference Include="SonarAnalyzer.CSharp">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- ConfigFiles -->
<PropertyGroup Label="ConfigFiles">
<EditorConfigFile Condition=" '$(EditorConfigFile)' == '' ">
$([MSBuild]::GetPathOfFileAbove('.editorconfig',
$(MSBuildProjectDirectory)))
</EditorConfigFile>
</PropertyGroup>
<ItemGroup Label="ConfigFiles">
<None Condition="Exists('$(EditorConfigFile)')" Include="$(EditorConfigFile)"
Visible="false" />
</ItemGroup>
</Project>