|
1 | | -<Project Sdk="Microsoft.NET.Sdk"> |
2 | | - |
3 | | - <PropertyGroup> |
4 | | - <IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows> |
5 | | - </PropertyGroup> |
6 | | - |
7 | | - <PropertyGroup> |
8 | | - <IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX> |
9 | | - <IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux> |
10 | | - </PropertyGroup> |
11 | | - |
12 | | - <PropertyGroup> |
13 | | - <TargetFramework>net6.0</TargetFramework> |
14 | | - <IsPackable>false</IsPackable> |
15 | | - <Platforms>AnyCPU</Platforms> |
16 | | - <AssemblyName>Miningcore.Tests</AssemblyName> |
17 | | - <RootNamespace>Miningcore.Tests</RootNamespace> |
18 | | - </PropertyGroup> |
19 | | - |
20 | | - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> |
21 | | - <PlatformTarget>AnyCPU</PlatformTarget> |
22 | | - </PropertyGroup> |
23 | | - |
24 | | - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
25 | | - <PlatformTarget>AnyCPU</PlatformTarget> |
26 | | - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
27 | | - </PropertyGroup> |
28 | | - |
29 | | - <ItemGroup> |
30 | | - <Compile Remove="JsonRpc\**" /> |
31 | | - <EmbeddedResource Remove="JsonRpc\**" /> |
32 | | - <None Remove="JsonRpc\**" /> |
33 | | - </ItemGroup> |
34 | | - |
35 | | - <ItemGroup> |
36 | | - <PackageReference Include="BenchmarkDotNet" Version="0.13.4" /> |
37 | | - <PackageReference Include="BenchmarkDotNet.Annotations" Version="0.13.4" /> |
38 | | - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" /> |
39 | | - <PackageReference Include="Microsoft.Reactive.Testing" Version="5.0.0" /> |
40 | | - <PackageReference Include="NLog" Version="5.3.4" /> |
41 | | - <PackageReference Include="Npgsql" Version="8.0.5" /> |
42 | | - <PackageReference Include="NSubstitute" Version="4.4.0" /> |
43 | | - <PackageReference Include="xunit" Version="2.4.2" /> |
44 | | - <PackageReference Include="xunit.runner.visualstudio" Version="2.4.5"> |
45 | | - <PrivateAssets>all</PrivateAssets> |
46 | | - <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
47 | | - </PackageReference> |
48 | | - </ItemGroup> |
49 | | - |
50 | | - <ItemGroup> |
51 | | - <ProjectReference Include="..\Miningcore\Miningcore.csproj" /> |
52 | | - </ItemGroup> |
53 | | - |
54 | | - <ItemGroup> |
55 | | - <None Update="test.runsettings"> |
56 | | - <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
57 | | - </None> |
58 | | - <None Update="xunit.runner.json"> |
59 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
60 | | - </None> |
61 | | - </ItemGroup> |
62 | | - |
63 | | - <!-- Copy library binaries from Miningcore build output on Windows --> |
64 | | - <Target Name="CopyLibsWin" AfterTargets="AfterBuild" Condition="'$(IsWindows)' == 'true'"> |
65 | | - <ItemGroup> |
66 | | - <Libs Include="$(ProjectDir)..\Miningcore\bin\$(Configuration)\net6.0\lib*.dll" /> |
67 | | - </ItemGroup> |
68 | | - |
69 | | - <Copy SourceFiles="@(Libs)" DestinationFolder="$(OutDir)" /> |
70 | | - </Target> |
71 | | - |
72 | | - <!-- Copy library binaries from Miningcore build output on Linux --> |
73 | | - <Target Name="CopyLibsLinux" AfterTargets="AfterBuild" Condition="'$(IsLinux)' == 'true'"> |
74 | | - <ItemGroup> |
75 | | - <Libs Include="$(ProjectDir)..\Miningcore\bin\$(Configuration)\net6.0\lib*.so" /> |
76 | | - </ItemGroup> |
77 | | - |
78 | | - <Copy SourceFiles="@(Libs)" DestinationFolder="$(OutDir)" /> |
79 | | - </Target> |
80 | | -</Project> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows> |
| 5 | + </PropertyGroup> |
| 6 | + |
| 7 | + <PropertyGroup> |
| 8 | + <IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX> |
| 9 | + <IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux> |
| 10 | + </PropertyGroup> |
| 11 | + |
| 12 | + <PropertyGroup> |
| 13 | + <TargetFramework>net6.0</TargetFramework> |
| 14 | + <IsPackable>false</IsPackable> |
| 15 | + <Platforms>AnyCPU</Platforms> |
| 16 | + <AssemblyName>Miningcore.Tests</AssemblyName> |
| 17 | + <RootNamespace>Miningcore.Tests</RootNamespace> |
| 18 | + </PropertyGroup> |
| 19 | + |
| 20 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> |
| 21 | + <PlatformTarget>AnyCPU</PlatformTarget> |
| 22 | + </PropertyGroup> |
| 23 | + |
| 24 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
| 25 | + <PlatformTarget>AnyCPU</PlatformTarget> |
| 26 | + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
| 27 | + </PropertyGroup> |
| 28 | + |
| 29 | + <ItemGroup> |
| 30 | + <Compile Remove="JsonRpc\**" /> |
| 31 | + <EmbeddedResource Remove="JsonRpc\**" /> |
| 32 | + <None Remove="JsonRpc\**" /> |
| 33 | + </ItemGroup> |
| 34 | + |
| 35 | + <ItemGroup> |
| 36 | + <PackageReference Include="BenchmarkDotNet" Version="0.13.4" /> |
| 37 | + <PackageReference Include="BenchmarkDotNet.Annotations" Version="0.13.4" /> |
| 38 | + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" /> |
| 39 | + <PackageReference Include="Microsoft.Reactive.Testing" Version="5.0.0" /> |
| 40 | + <PackageReference Include="NLog" Version="5.3.4" /> |
| 41 | + <PackageReference Include="Npgsql" Version="8.0.5" /> |
| 42 | + <PackageReference Include="NSubstitute" Version="4.4.0" /> |
| 43 | + <PackageReference Include="xunit" Version="2.4.2" /> |
| 44 | + <PackageReference Include="xunit.runner.visualstudio" Version="2.4.5"> |
| 45 | + <PrivateAssets>all</PrivateAssets> |
| 46 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| 47 | + </PackageReference> |
| 48 | + </ItemGroup> |
| 49 | + |
| 50 | + <ItemGroup> |
| 51 | + <ProjectReference Include="..\Miningcore\Miningcore.csproj" /> |
| 52 | + </ItemGroup> |
| 53 | + |
| 54 | + <ItemGroup> |
| 55 | + <None Update="test.runsettings"> |
| 56 | + <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| 57 | + </None> |
| 58 | + <None Update="xunit.runner.json"> |
| 59 | + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| 60 | + </None> |
| 61 | + </ItemGroup> |
| 62 | + |
| 63 | + <!-- Copy library binaries from Miningcore build output on Windows --> |
| 64 | + <Target Name="CopyLibsWin" AfterTargets="AfterBuild" Condition="'$(IsWindows)' == 'true'"> |
| 65 | + <ItemGroup> |
| 66 | + <Libs Include="$(ProjectDir)..\Miningcore\bin\$(Configuration)\net6.0\lib*.dll" /> |
| 67 | + </ItemGroup> |
| 68 | + |
| 69 | + <Copy SourceFiles="@(Libs)" DestinationFolder="$(OutDir)" /> |
| 70 | + </Target> |
| 71 | + |
| 72 | + <!-- Copy library binaries from Miningcore build output on Linux --> |
| 73 | + <Target Name="CopyLibsLinux" AfterTargets="AfterBuild" Condition="'$(IsLinux)' == 'true'"> |
| 74 | + <ItemGroup> |
| 75 | + <Libs Include="$(ProjectDir)..\Miningcore\bin\$(Configuration)\net6.0\lib*.so" /> |
| 76 | + </ItemGroup> |
| 77 | + |
| 78 | + <Copy SourceFiles="@(Libs)" DestinationFolder="$(OutDir)" /> |
| 79 | + </Target> |
| 80 | +</Project> |
0 commit comments