-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
47 lines (40 loc) · 1.84 KB
/
Directory.Build.props
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
<Project>
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JetBrains.Annotations"/>
<Using Include="System.Diagnostics.CodeAnalysis"/>
<Using Include="System.Diagnostics.Contracts"/>
<Using Include="System.Diagnostics.Contracts.PureAttribute" Alias="PureAttribute"/>
<Using Include="JetBrains.Annotations"/>
</ItemGroup>
<ItemGroup Condition="!$(MSBuildProjectName.EndsWith('Tests'))">
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>$(AssemblyName).Tests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
<ItemGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
<PackageReference Include="FluentAssertions"/>
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
<PackageReference Include="NUnit"/>
<PackageReference Include="NUnit3TestAdapter"/>
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<Using Include="FluentAssertions"/>
<Using Include="NUnit.Framework"/>
</ItemGroup>
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
<!-- Allow underscores in test method names. -->
<NoWarn>CA1707</NoWarn>
</PropertyGroup>
</Project>