-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
51 lines (43 loc) · 3.02 KB
/
Copy pathDirectory.Build.props
File metadata and controls
51 lines (43 loc) · 3.02 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
<Project>
<!-- SDK-owned properties - centralized here, NOT in individual csproj files -->
<PropertyGroup>
<!-- Centralize build output to artifacts/ -->
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts/</ArtifactsPath>
<BaseOutputPath>$(ArtifactsPath)bin/$(MSBuildProjectName)/</BaseOutputPath>
<BaseIntermediateOutputPath>$(ArtifactsPath)obj/$(MSBuildProjectName)/</BaseIntermediateOutputPath>
<!-- Versioning: allow CI or callers to pass VersionPrefix/VersionSuffix via -p:VersionPrefix=1.2.3 -p:VersionSuffix=ci.123 -->
<VersionPrefix Condition="'$(VersionPrefix)' == ''">0.0.1</VersionPrefix>
<VersionSuffix Condition="'$(VersionSuffix)' == ''">local</VersionSuffix>
<Version Condition="'$(VersionSuffix)' != ''">$(VersionPrefix)-$(VersionSuffix)</Version>
<Version Condition="'$(VersionSuffix)' == ''">$(VersionPrefix)</Version>
<!-- Deterministic builds for reproducibility -->
<Deterministic>true</Deterministic>
<LangVersion Condition="'$(LangVersion)' == ''">latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings Condition="'$(ImplicitUsings)' == ''">enable</ImplicitUsings>
<EnableNETAnalyzers Condition="'$(EnableNETAnalyzers)' == ''">true</EnableNETAnalyzers>
<AnalysisLevel Condition="'$(AnalysisLevel)' == ''">latest-all</AnalysisLevel>
<MSBuildTreatWarningsAsErrors Condition="'$(MSBuildTreatWarningsAsErrors)' == '' AND '$(ContinuousIntegrationBuild)' == 'true'">true</MSBuildTreatWarningsAsErrors>
<TreatWarningsAsErrors Condition="'$(TreatWarningsAsErrors)' == '' AND '$(ContinuousIntegrationBuild)' == 'true'">true</TreatWarningsAsErrors>
<EnforceCodeStyleInBuild Condition="'$(EnforceCodeStyleInBuild)' == ''">true</EnforceCodeStyleInBuild>
<NoWarn>$(NoWarn);NU1604</NoWarn>
<NoWarn Condition="'$(TargetFramework)' == 'netstandard2.0'">$(NoWarn);NU1701</NoWarn>
<!-- Package metadata -->
<Authors>Alexander Nachtmann</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/ANcpLua/ANcpLua.Roslyn.Utilities</RepositoryUrl>
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
</PropertyGroup>
<!-- Pull in the canonical ANcpLua.NET.Sdk analyzer/style conventions without importing the SDK package -->
<PropertyGroup>
<EnableEditorConfigDogfooding Condition="'$(EnableEditorConfigDogfooding)' == ''">true</EnableEditorConfigDogfooding>
</PropertyGroup>
<ItemGroup Condition="'$(EnableEditorConfigDogfooding)' == 'true'">
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)../ANcpLua.NET.Sdk/src/Config/*.editorconfig"
Exclude="$(MSBuildThisFileDirectory)../ANcpLua.NET.Sdk/src/Config/ANcpLua.NET.Sdk*.editorconfig" />
</ItemGroup>
<!-- CI-specific settings -->
<PropertyGroup Condition="'$(CI)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
</Project>