-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
60 lines (51 loc) · 2.91 KB
/
Copy pathDirectory.Build.props
File metadata and controls
60 lines (51 loc) · 2.91 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
<Project>
<!--
Solution-wide compiler and analysis settings.
Per-project .csproj files may still override individual properties where needed.
-->
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<!-- Quality gate temporarily disabled while iterating; will be re-tightened
later. Set back to true to make warnings fail the build again. -->
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<!-- Run .editorconfig code-style rules during build, but only as warnings
(see EnforceCodeStyleInBuild). Style violations surface without failing
the build, while genuine compiler warnings (promoted above) do fail. -->
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
<AnalysisLevel>latest</AnalysisLevel>
<!--
CS8669: nullable annotation in generated code without an explicit #nullable
directive. Emitted only by the Razor source generator for .razor-derived
code; not actionable in hand-written source. Suppressed solution-wide.
-->
<NoWarn>$(NoWarn);CS8669</NoWarn>
</PropertyGroup>
<!-- Solution-weite Produktversion. Einziger Pflegeort; gilt für alle Projekte.
MSBuild leitet aus VersionPrefix AssemblyVersion, FileVersion und
InformationalVersion ab. VersionSuffix (z. B. -rc.1) bleibt per Build-Flag
ergänzbar, ohne den Prefix zu ändern. -->
<PropertyGroup>
<VersionPrefix>1.0.4</VersionPrefix>
<Product>OrderSphere</Product>
<Company>OrderSphere</Company>
<!-- Vermeidet den +<sha>-Suffix in der InformationalVersion. -->
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup>
<!-- SDK Container Publishing (opt-in via <EnableSdkContainerSupport>true</EnableSdkContainerSupport>).
Only set in deployable projects (*.Api, *.Worker, ApiGateway, Bff).
azd overrides ContainerRegistry and ContainerImageTag at deploy time. -->
<PropertyGroup Condition="'$(EnableSdkContainerSupport)' == 'true'">
<ContainerBaseImage>mcr.microsoft.com/dotnet/aspnet:10.0-noble-chiseled</ContainerBaseImage>
<ContainerUser>app</ContainerUser>
</PropertyGroup>
<!-- Aktiviert die eingecheckten Git-Hooks unter .githooks/ (Branch-Namenskonvention,
siehe docs/branch-naming-convention.md). Läuft bei jedem lokalen Build einmal pro
Clone; no-op sobald core.hooksPath bereits gesetzt ist. Übersprungen in CI
(dort sind Hooks irrelevant und der Checkout hat oft kein .git/config zum Schreiben). -->
<Target Name="InstallGitHooks" BeforeTargets="Build" Condition="'$(CI)' == ''">
<Exec Command="git config core.hooksPath .githooks" WorkingDirectory="$(MSBuildThisFileDirectory)" ContinueOnError="WarnAndContinue" StandardOutputImportance="low" StandardErrorImportance="low" />
</Target>
</Project>