Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
124 lines (112 loc) · 5.01 KB
/
Copy pathDirectory.Build.props
File metadata and controls
124 lines (112 loc) · 5.01 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<Project>
<!-- Core Settings -->
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<!-- Code Quality -->
<PropertyGroup>
<AnalysisLevel>latest</AnalysisLevel>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- CA1716: Reserved-language terms, CA1848: ILogger usage -->
<NoWarn>$(NoWarn);CA1716;CA1848</NoWarn>
</PropertyGroup>
<!-- Security & Versioning -->
<PropertyGroup>
<NuGetAudit>true</NuGetAudit>
<NuGetAuditMode>all</NuGetAuditMode>
<NuGetAuditLevel>moderate</NuGetAuditLevel>
<Version>1.0.0</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
</PropertyGroup>
<!-- Metadata -->
<PropertyGroup>
<Authors>ReSys Team</Authors>
<Company>ReSys</Company>
<Product>ReSys.Shop</Product>
<IsPackable>false</IsPackable>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<RepositoryUrl>https://github.com/qingfa-dev/ReSys.Shop.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
</PropertyGroup>
<!-- NuGet Metadata (when packable) -->
<PropertyGroup Condition="'$(IsPackable)' == 'true'">
<Copyright>Copyright © ReSys Team</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://gitlab.com/qingfa.dev/ReSys.Shop</PackageProjectUrl>
</PropertyGroup>
<!-- CI / Deterministic Builds -->
<PropertyGroup Condition="'$(CI)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<Deterministic>true</Deterministic>
</PropertyGroup>
<!-- Restore Settings -->
<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>
<!-- .NET 10 Optimizations -->
<PropertyGroup>
<OptimizeImplicitlyTriggeredBuild>true</OptimizeImplicitlyTriggeredBuild>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<InterceptorsNamespaces>$(InterceptorsNamespaces);Microsoft.AspNetCore.OpenApi.Generated</InterceptorsNamespaces>
</PropertyGroup>
<!-- Test Project Detection -->
<PropertyGroup>
<IsTestProject Condition="'$(IsTestProject)' == '' AND (
$(MSBuildProjectName.EndsWith('.Tests')) OR
$(MSBuildProjectName.EndsWith('.UnitTests')) OR
$(MSBuildProjectName.EndsWith('.IntegrationTests')) OR
$(MSBuildProjectName.EndsWith('.Specs')))">true</IsTestProject>
</PropertyGroup>
<!-- Internals Visible to Test Assemblies -->
<ItemGroup Condition="'$(IsTestProject)' != 'true'">
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
<InternalsVisibleTo Include="$(AssemblyName).UnitTests" />
<InternalsVisibleTo Include="$(AssemblyName).IntegrationTests" />
<InternalsVisibleTo Include="DynamicProxyGenAssembly2" />
</ItemGroup>
<!-- Test Project Overrides -->
<PropertyGroup Condition="'$(IsTestProject)' == 'true'">
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<!-- CA1707: xUnit test names, CS1591: no XML docs, xUnit1051: CancellationToken usage -->
<NoWarn>$(NoWarn);CS1591;CS1573;CA1707;xUnit1051;CA1861</NoWarn>
<ParallelizeTestCollections>true</ParallelizeTestCollections>
<MaxParallelThreads>0</MaxParallelThreads>
<!-- Coverage is opt-in: pass /p:CollectCoverage=true on CI runs that need it. -->
<CollectCoverage Condition="'$(CollectCoverage)' == ''">false</CollectCoverage>
<CoverletOutputFormat>cobertura,json</CoverletOutputFormat>
<CoverletOutput>$(MSBuildProjectDirectory)/coverage/</CoverletOutput>
</PropertyGroup>
<!-- Test Package References -->
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit.v3" />
<PackageReference Include="xunit.runner.visualstudio">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit.analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Moq" />
</ItemGroup>
<!-- SourceLink for Non-Test Projects -->
<ItemGroup Condition="'$(IsTestProject)' != 'true'">
<PackageReference Include="Microsoft.SourceLink.GitHub" />
</ItemGroup>
</Project>