forked from tpolyak/Sharp-Architecture
-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
110 lines (91 loc) · 4.71 KB
/
Copy pathDirectory.Build.props
File metadata and controls
110 lines (91 loc) · 4.71 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
<Project>
<PropertyGroup Label="Build targets">
<!-- target frameworks for unit-tests and applications -->
<AppTargetFrameworks>net8.0;net9.0;net10.0</AppTargetFrameworks>
<!-- target frameworks for SharpArch libraries -->
<LibraryTargetFrameworks>netstandard2.1;$(AppTargetFrameworks)</LibraryTargetFrameworks>
</PropertyGroup>
<PropertyGroup Label="Build">
<Product>Sharp Architecture</Product>
<Authors>Sharp Architecture Dev Team</Authors>
<Copyright>Copyright © Sharp Architecture Development Team</Copyright>
<TargetFrameworks>$(LibraryTargetFrameworks)</TargetFrameworks>
<Culture></Culture>
<SignAssembly>false</SignAssembly>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<IsTestProject>false</IsTestProject>
<DefineConstants>$(DefineConstants);JETBRAINS_ANNOTATIONS;NULLABLE_REFERENCE_TYPES</DefineConstants>
<NoWarn>$(NoWarn);0105</NoWarn>
</PropertyGroup>
<ItemGroup>
<Using Include="JetBrains.Annotations" />
<Using Include="System.Diagnostics.CodeAnalysis" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Label="Package" Condition="'$(MSBuildProjectName.Contains(Tests))' == false">
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
<IsPackable>True</IsPackable>
<PackageIconUrl>https://github.com/sharparchitecture/Sharp-Architecture/raw/master/Artefacts/Documentation/icon.png</PackageIconUrl>
<PackageProjectUrl>http://sharparchitecture.github.io/</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageReleaseNotes>https://github.com/sharparchitecture/Sharp-Architecture/releases/tag/9.1.0</PackageReleaseNotes>
<PackageTags>sharp-architecture;sharp-arch</PackageTags>
</PropertyGroup>
<PropertyGroup Label="SourceLink">
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildProjectName.Contains(Tests))' == true">
<TargetFrameworks>$(AppTargetFrameworks)</TargetFrameworks>
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
<NoWarn>$(NoWarn);0618;1591</NoWarn>
<!-- .NET 9+ SDK runs multi-targeted `dotnet test` TFMs concurrently by default, which races
tests that touch shared files on disk (e.g. MappingIntegrationTests.CanGenerateDatabaseSchema
writing to a fixed path under Database/). Keep TFM test runs sequential. -->
<TestTfmsInParallel>false</TestTfmsInParallel>
</PropertyGroup>
<!-- Coverlet MSBuild integration for code coverage collection in all test projects -->
<ItemGroup Condition="'$(MSBuildProjectName.Contains(Tests))' == true">
<PackageReference Include="coverlet.msbuild" Version="6.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- xUnit v3 analyzer: suppress xunit1051 on .NET 8+ targets where xUnit v3 is used -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0' Or '$(TargetFramework)' == 'net9.0' Or '$(TargetFramework)' == 'net10.0' ">
<NoWarn>$(NoWarn);xunit1051</NoWarn>
</PropertyGroup>
<ItemGroup Condition="'$(MSBuildProjectName.Contains(Tests))' == false">
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>SharpArch.XunitTests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
<PropertyGroup Condition="'$(MSBuildProjectFullPath.Contains(Sample))' == true">
<IsPackable>false</IsPackable>
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.InteropServices.ComVisibleAttribute">
<_Parameter1>false</_Parameter1>
<_Parameter1_TypeName>System.Boolean</_Parameter1_TypeName>
</AssemblyAttribute>
</ItemGroup>
<!-- Common references -->
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2026.2.0" />
</ItemGroup>
</Project>