-
-
Notifications
You must be signed in to change notification settings - Fork 146
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
73 lines (64 loc) · 3.39 KB
/
Copy pathDirectory.Build.props
File metadata and controls
73 lines (64 loc) · 3.39 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
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">
<CurrentOsName>Windows</CurrentOsName>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">
<CurrentOsName>Linux</CurrentOsName>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">
<CurrentOsName>OSX</CurrentOsName>
</PropertyGroup>
<PropertyGroup Condition=" $(MSBuildProjectName.EndsWith('Tests')) ">
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
<IsTest>true</IsTest>
<NoWarn>$(NoWarn);CS1998,xUnit1051,xUnit2015,xUnit2017,xUnit2005,xUnit2009,xUnit2013,xUnit1013,xUnit2004;CA2007;CS8002</NoWarn>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Velopack.snk</AssemblyOriginatorKeyFile>
<IsPackable>false</IsPackable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup Condition=" $(MSBuildProjectName.EndsWith('Tests')) and $(CI) != '' ">
<CoverletOutputFormat>cobertura</CoverletOutputFormat>
<CoverletOutput>..\coverage\coverage.$(CurrentOsName).$(MSBuildProjectName).xml</CoverletOutput>
<Include>[Velopack*]*,[vpk*]*</Include>
<Exclude>[Velopack.*.Tests]*,[Velopack.TestCommon]*,[*]Microsoft*</Exclude>
<CollectCoverage>true</CollectCoverage>
<ExcludeByAttribute>ExcludeFromCodeCoverage,GeneratedCode</ExcludeByAttribute>
</PropertyGroup>
<ItemGroup Condition=" $(MSBuildProjectName.EndsWith('Tests')) ">
<Compile Include="..\GlobalUsings.cs" Link="GlobalUsings.cs" />
</ItemGroup>
<ItemGroup Condition=" $(MSBuildProjectName.EndsWith('Tests')) ">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.8.1" />
<PackageReference Include="Microsoft.Testing.Platform" Version="2.3.2" />
<PackageReference Include="Neovolve.Logging.Xunit.Signed.v3" Version="7.2.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="xunit.v3.mtp-v2" Version="3.2.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
<PackageReference Include="coverlet.msbuild" Version="6.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="GitHubActionsTestLogger" Version="3.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>compile; runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="JunitXml.TestLogger" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- StrongNamer re-signs unsigned third-party deps; only needed for net4x targets.
On net8.0 it breaks references to types deriving from unsigned packages (e.g. Markdig). -->
<ItemGroup Condition=" $(MSBuildProjectName.EndsWith('Tests')) and $(TargetFramework.StartsWith('net4')) ">
<PackageReference Include="StrongNamer" Version="0.2.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>