Skip to content

Commit 2f566f3

Browse files
update/build-props
1 parent a7d2018 commit 2f566f3

File tree

125 files changed

+81
-475
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+81
-475
lines changed

Directory.Build.props

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<Project>
2+
3+
<!--GLOBAL-->
24
<PropertyGroup>
35
<Version>12.1.1</Version>
46
<PackageVersion>12.1.1</PackageVersion>
@@ -11,5 +13,64 @@
1113
<NeutralLanguage>en</NeutralLanguage>
1214
<Copyright>Copyright © ONIXLabs 2020</Copyright>
1315
<RepositoryUrl>https://github.com/onix-labs/onixlabs-dotnet</RepositoryUrl>
16+
<ContinuousIntegrationBuild Condition="'$(CI)' == 'true'">true</ContinuousIntegrationBuild>
1417
</PropertyGroup>
18+
19+
<!--NUGET PACKAGES-->
20+
<PropertyGroup Condition="!$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.UnitTests')) and !$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.UnitTests.Data'))">
21+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
22+
<DebugType>embedded</DebugType>
23+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
24+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
25+
<IncludeSymbols>true</IncludeSymbols>
26+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
27+
<PackageProjectUrl>https://github.com/onix-labs/onixlabs-dotnet</PackageProjectUrl>
28+
<PackageReadmeFile>README.md</PackageReadmeFile>
29+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
30+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
31+
<RepositoryType>git</RepositoryType>
32+
</PropertyGroup>
33+
34+
<ItemGroup Condition="!$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.UnitTests')) and !$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.UnitTests.Data'))">
35+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
36+
<PrivateAssets>all</PrivateAssets>
37+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
38+
</PackageReference>
39+
<None Include="..\README.md" Pack="true" PackagePath="\"/>
40+
</ItemGroup>
41+
42+
<!--UNIT TESTS-->
43+
<PropertyGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.UnitTests'))">
44+
<IsTestProject>true</IsTestProject>
45+
<IsPackable>false</IsPackable>
46+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
47+
</PropertyGroup>
48+
49+
<ItemGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.UnitTests'))">
50+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1"/>
51+
<PackageReference Include="xunit" Version="2.9.3"/>
52+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2"/>
53+
<PackageReference Include="coverlet.collector" Version="6.0.4"/>
54+
<Using Include="Xunit"/>
55+
</ItemGroup>
56+
57+
<!--UNIT TEST DATA-->
58+
<PropertyGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.UnitTests.Data'))">
59+
<IsTestProject>false</IsTestProject>
60+
<IsPackable>false</IsPackable>
61+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
62+
</PropertyGroup>
63+
64+
<ItemGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.UnitTests.Data'))">
65+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1"/>
66+
<PackageReference Include="xunit" Version="2.9.3"/>
67+
<Using Include="Xunit"/>
68+
</ItemGroup>
69+
70+
<!--PLAYGROUND-->
71+
<PropertyGroup Condition="'$(OutputType)' == 'Exe'">
72+
<IsPackable>false</IsPackable>
73+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
74+
</PropertyGroup>
75+
1576
</Project>
Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<IsPackable>false</IsPackable>
43
<IsTestProject>false</IsTestProject>
54
</PropertyGroup>
6-
<ItemGroup>
7-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
8-
<PackageReference Include="xunit" Version="2.9.2" />
9-
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
10-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
11-
<PrivateAssets>all</PrivateAssets>
12-
</PackageReference>
13-
<PackageReference Include="coverlet.collector" Version="6.0.2">
14-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
15-
<PrivateAssets>all</PrivateAssets>
16-
</PackageReference>
17-
</ItemGroup>
185
<ItemGroup>
196
<ProjectReference Include="..\OnixLabs.Core\OnixLabs.Core.csproj" />
207
</ItemGroup>
21-
<ItemGroup>
22-
<Using Include="OnixLabs.Core.Preconditions" Static="True" />
23-
</ItemGroup>
248
</Project>

OnixLabs.Core.UnitTests/ArrayExtensionTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// limitations under the License.
1414

1515
using System.Text;
16-
using Xunit;
1716

1817
namespace OnixLabs.Core.UnitTests;
1918

OnixLabs.Core.UnitTests/Collections/CollectionTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
using System.Collections.Generic;
1616
using System.Collections.Immutable;
1717
using System.Linq;
18-
using Xunit;
1918
using static OnixLabs.Core.Collections.Collection;
2019

2120
namespace OnixLabs.Core.UnitTests.Collections;

OnixLabs.Core.UnitTests/DateTimeExtensionTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// limitations under the License.
1414

1515
using System;
16-
using Xunit;
1716

1817
namespace OnixLabs.Core.UnitTests;
1918

OnixLabs.Core.UnitTests/EnumerationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
using System.Collections.Generic;
1616
using OnixLabs.Core.UnitTests.Data;
17-
using Xunit;
1817

1918
namespace OnixLabs.Core.UnitTests;
2019

OnixLabs.Core.UnitTests/Linq/IEnumerableExtensionTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
using System.Numerics;
2121
using OnixLabs.Core.Linq;
2222
using OnixLabs.Core.UnitTests.Data;
23-
using Xunit;
2423

2524
namespace OnixLabs.Core.UnitTests.Linq;
2625

OnixLabs.Core.UnitTests/ObjectExtensionTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
using System;
1616
using System.Threading.Tasks;
1717
using OnixLabs.Core.UnitTests.Data;
18-
using Xunit;
1918

2019
namespace OnixLabs.Core.UnitTests;
2120

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<IsPackable>false</IsPackable>
4-
<IsTestProject>true</IsTestProject>
5-
</PropertyGroup>
62
<ItemGroup>
7-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
8-
<PackageReference Include="xunit" Version="2.9.2" />
9-
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
10-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
11-
<PrivateAssets>all</PrivateAssets>
12-
</PackageReference>
13-
<PackageReference Include="coverlet.collector" Version="6.0.2">
14-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
15-
<PrivateAssets>all</PrivateAssets>
16-
</PackageReference>
17-
</ItemGroup>
18-
<ItemGroup>
19-
<ProjectReference Include="..\OnixLabs.Core.UnitTests.Data\OnixLabs.Core.UnitTests.Data.csproj" />
20-
<ProjectReference Include="..\OnixLabs.Core\OnixLabs.Core.csproj" />
21-
</ItemGroup>
22-
<ItemGroup>
23-
<Using Include="OnixLabs.Core.Preconditions" Static="True" />
3+
<ProjectReference Include="..\OnixLabs.Core\OnixLabs.Core.csproj"/>
4+
<ProjectReference Include="..\OnixLabs.Core.UnitTests.Data\OnixLabs.Core.UnitTests.Data.csproj"/>
5+
<Using Include="OnixLabs.Core.Preconditions" Static="True"/>
246
</ItemGroup>
257
</Project>

OnixLabs.Core.UnitTests/OptionalEqualityComparerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
using System;
1616
using System.Collections.Generic;
17-
using Xunit;
1817

1918
namespace OnixLabs.Core.UnitTests;
2019

0 commit comments

Comments
 (0)