-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.targets
51 lines (45 loc) · 2.29 KB
/
Directory.Build.targets
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 xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Only create packages for non-test projects -->
<PropertyGroup Condition="'$(TestProjectType)' == ''">
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<!-- Packages for all projects -->
<ItemGroup>
<PackageReference Include="SpiceSharp" Version="3.2.0" />
<PackageReference Include="SpiceSharpGenerator" Version="1.0.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- Include the default test packages for test projects -->
<ItemGroup Condition="'$(TestProjectType)' != ''">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.4.3" />
<PackageReference Include="MSTest.TestFramework" Version="3.4.3" />
<PackageReference Include="NUnit" Version="4.1.0" />
<PackageReference Include="NUnit.Console" Version="3.17.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NUnit.Analyzers" Version="4.2.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- Disable some rules for test projects -->
<PropertyGroup Condition="'$(TestProjectType)' != ''">
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>
<!-- Automatic versioning using GitInfo if UseGitInfo is set to true -->
<PropertyGroup Condition="'$(UseGitInfo)' == 'true'">
<GitSkipCache>true</GitSkipCache>
<GitBaseVersionRegex>^(?:\w+-)?v?(?<MAJOR>\d+)\.(?<MINOR>\d+)\.(?<PATCH>\d+)$</GitBaseVersionRegex>
</PropertyGroup>
<ItemGroup Condition="'$(UseGitInfo)' == 'true'">
<PackageReference Include="GitInfo" Version="3.3.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>