Skip to content

Commit

Permalink
Move Build System to .NET Core 2.1, projects to .NET Standard 2.0 and…
Browse files Browse the repository at this point in the history
… .NET 4.5.2 (akkadotnet#3668)

* migrated to 'dotnet test'

* added missing variable for detecing TeamCity

* added more targets for end-to-end testing and building

* fixed issue with dotnet test lockup for Akka.Cluster.Tests

* upgraded all core projects to standards

* fixed all major build issues thus far

* upgraded all contrib/cluster projects

* completed standardizing all projects

* fixed issue with Akka.DI.Core

* upgrade Linux to .NET Core 2.0 SDK

* further fixes to build.sh

* changed search location for MNTR assemblies

* upgraded MNTR to .NET 4.6.1

* fixed build.sh dotnet-install command

* fixed .NET Core test execution

* fixed issue with Akka.Remote.Tests.MultiNode outputting to wrong spot

* added channel to build.sh

* changed to wget

* fixed dotnet installer url

* skip API approvals on .NET Core

* fixed issue with MNTR NuGet packaging

* disabled FsCheck

* attempted to address Akka.Persistence memory leak

* migrated to 'dotnet test'

* added missing variable for detecing TeamCity

* added more targets for end-to-end testing and building

* fixed issue with dotnet test lockup for Akka.Cluster.Tests

* rebased on dev

* fixed all major build issues thus far

* upgraded all contrib/cluster projects

* completed standardizing all projects

* fixed issue with Akka.DI.Core

* upgrade Linux to .NET Core 2.0 SDK

* further fixes to build.sh

* changed search location for MNTR assemblies

* upgraded MNTR to .NET 4.6.1

* fixed build.sh dotnet-install command

* fixed .NET Core test execution

* fixed issue with Akka.Remote.Tests.MultiNode outputting to wrong spot

* added channel to build.sh

* changed to wget

* fixed dotnet installer url

* skip API approvals on .NET Core

* fixed issue with MNTR NuGet packaging

* disabled FsCheck

* attempted to address Akka.Persistence memory leak

* fixed issue with Akka.Streams tests

* standardized FluentAssertions version

* fixed compilation of TCK

* upgraded to .NET Core 2.1 SDK

* removed restore stage - no longer needed

* bumpe tests to .NET Core 2.1

* Revert "bumpe tests to .NET Core 2.1"

This reverts commit f76e09f.

* workaround dotnet/msbuild#2275 until .NET Core 2.1 migration

* Revert "upgraded to .NET Core 2.1 SDK"

This reverts commit b000b76.

* improved test error result handling

* Revert "Revert "upgraded to .NET Core 2.1 SDK""

This reverts commit 1b1a836.

* Revert "Revert "bumpe tests to .NET Core 2.1""

This reverts commit 175d6ca.

* moving onto .NET Standard 2.0

* standardized most test projects

* fixed common.props references

* fixed .NET Core 2.1 build systems

* fixed issue with packing MNTR

* fixed issue with single test failure stopping build

* fixed failure handling

* fixed issues with Akka.Streams specs

* fixed scan for incremental tests

* working on FsCheck standardization issues

* removed more net implicit standard junk

* cleaning up implicit package versions; bumped to JSON.NET 12.0.1

* fixed port bindings for Akka.Cluster.Tools and Akka.Cluster.Sharding so suites could theoretically run in parallel

* fixed more ports

* fixed compilation errors

* rolled back to Newtonsoft.Json 9.0.1

* disabled parallelization in Akka.Streams.Tests

* added xunit.runner.json

* Disabled xunit.runner.json for Akka.Streams.Tests

* added more debug logging to scriptedtest

* issue appears to be the 1ms deadline not being long enough on .NET Core - stream isn't even wired up yet

* fixed race condition with Bug2640Spec for akkadotnet#2640

needed to give the system more messages to process so we guarantee hitting all four dispatcher threads when running the test suite in parallel.

* updated API approvals

* fixed issue with Bug2640Spec again

No longer looking for an exact thread count since the CPU may not schedule it that. Instead, just ensure that all of the threads hit on the dispatcher shut down when the dispatcher is terminated.

* same fix as previous
  • Loading branch information
Aaronontheweb authored and madmonkey committed Jul 12, 2019
1 parent fe27366 commit e72782f
Show file tree
Hide file tree
Showing 109 changed files with 347 additions and 450 deletions.
67 changes: 29 additions & 38 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ let outputBinariesNet45 = outputBinaries @@ "net45"
let outputBinariesNetStandard = outputBinaries @@ "netstandard1.6"

let buildNumber = environVarOrDefault "BUILD_NUMBER" "0"
let hasTeamCity = (not (buildNumber = "0")) // check if we have the TeamCity environment variable for build # set
let preReleaseVersionSuffix = "beta" + (if (not (buildNumber = "0")) then (buildNumber) else DateTime.UtcNow.Ticks.ToString())
let versionSuffix =
match (getBuildParam "nugetprerelease") with
Expand Down Expand Up @@ -61,17 +62,6 @@ Target "AssemblyInfo" (fun _ ->
XmlPokeInnerText "./src/common.props" "//Project/PropertyGroup/PackageReleaseNotes" (releaseNotes.Notes |> String.concat "\n")
)

Target "RestorePackages" (fun _ ->
let additionalArgs = if versionSuffix.Length > 0 then [sprintf "/p:VersionSuffix=%s" versionSuffix] else []

DotNetCli.Restore
(fun p ->
{ p with
Project = solution
NoCache = false
AdditionalArgs = additionalArgs })
)

Target "Build" (fun _ ->
let additionalArgs = if versionSuffix.Length > 0 then [sprintf "/p:VersionSuffix=%s" versionSuffix] else []

Expand Down Expand Up @@ -120,18 +110,18 @@ Target "RunTests" (fun _ ->
getUnitTestProjects Net

let runSingleProject project =
let arguments =
match (hasTeamCity) with
| true -> (sprintf "test -c Release --no-build --logger:trx --logger:\"console;verbosity=normal\" --framework net461 --results-directory %s -- -parallel none -teamcity" (outputTests))
| false -> (sprintf "test -c Release --no-build --logger:trx --logger:\"console;verbosity=normal\" --framework net461 --results-directory %s -- -parallel none" (outputTests))

let result = ExecProcess(fun info ->
info.FileName <- "dotnet"
info.WorkingDirectory <- (Directory.GetParent project).FullName
info.Arguments <- (sprintf "xunit -f net452 -c Release -nobuild -parallel none -teamcity -xml %s_xunit.xml" (outputTests @@ fileNameWithoutExt project))) (TimeSpan.FromMinutes 30.)
info.Arguments <- arguments) (TimeSpan.FromMinutes 30.0)

ResultHandling.failBuildIfXUnitReportedError TestRunnerErrorLevel.DontFailBuild result

// dotnet process will be killed by ExecProcess (or throw if can't) '
// but per https://github.com/xunit/xunit/issues/1338 xunit.console may not
killProcess "xunit.console"
killProcess "dotnet"

CreateDir outputTests
projects |> Seq.iter (runSingleProject)
)
Expand All @@ -149,25 +139,25 @@ Target "RunTestsNetCore" (fun _ ->
getUnitTestProjects NetCore

let runSingleProject project =
let arguments =
match (hasTeamCity) with
| true -> (sprintf "test -c Release --no-build --logger:trx --logger:\"console;verbosity=normal\" --framework netcoreapp2.1 --results-directory %s -- -parallel none -teamcity" (outputTests))
| false -> (sprintf "test -c Release --no-build --logger:trx --logger:\"console;verbosity=normal\" --framework netcoreapp2.1 --results-directory %s -- -parallel none" (outputTests))

let result = ExecProcess(fun info ->
info.FileName <- "dotnet"
info.WorkingDirectory <- (Directory.GetParent project).FullName
info.Arguments <- (sprintf "xunit -f netcoreapp1.1 -c Release -parallel none -teamcity -xml %s_xunit_netcore.xml" (outputTests @@ fileNameWithoutExt project))) (TimeSpan.FromMinutes 30.)
info.Arguments <- arguments) (TimeSpan.FromMinutes 30.0)

ResultHandling.failBuildIfXUnitReportedError TestRunnerErrorLevel.DontFailBuild result

// dotnet process will be killed by FAKE.ExecProcess (or throw if can't)
// but per https://github.com/xunit/xunit/issues/1338 xunit.console may not be killed
killProcess "xunit.console"
killProcess "dotnet"

CreateDir outputTests
projects |> Seq.iter (runSingleProject)
)

Target "MultiNodeTests" (fun _ ->
ActivateFinalTarget "KillCreatedProcesses"
let multiNodeTestPath = findToolInSubPath "Akka.MultiNodeTestRunner.exe" (currentDirectory @@ "src" @@ "core" @@ "Akka.MultiNodeTestRunner" @@ "bin" @@ "Release" @@ "net452")
let multiNodeTestPath = findToolInSubPath "Akka.MultiNodeTestRunner.exe" (currentDirectory @@ "src" @@ "core" @@ "Akka.MultiNodeTestRunner" @@ "bin" @@ "Release" @@ "net461")

let multiNodeTestAssemblies =
match getBuildParamOrDefault "incremental" "" with
Expand Down Expand Up @@ -203,7 +193,7 @@ Target "MultiNodeTests" (fun _ ->

Target "MultiNodeTestsNetCore" (fun _ ->
ActivateFinalTarget "KillCreatedProcesses"
let multiNodeTestPath = findToolInSubPath "Akka.MultiNodeTestRunner.dll" (currentDirectory @@ "src" @@ "core" @@ "Akka.MultiNodeTestRunner" @@ "bin" @@ "Release" @@ "netcoreapp1.1" @@ "win7-x64" @@ "publish")
let multiNodeTestPath = findToolInSubPath "Akka.MultiNodeTestRunner.dll" (currentDirectory @@ "src" @@ "core" @@ "Akka.MultiNodeTestRunner" @@ "bin" @@ "Release" @@ "netcoreapp2.1" @@ "win7-x64" @@ "publish")

let multiNodeTestAssemblies =
match getBuildParamOrDefault "incremental" "" with
Expand Down Expand Up @@ -340,7 +330,7 @@ Target "PublishMntr" (fun _ ->
Project = project
Configuration = configuration
Runtime = "win7-x64"
Framework = "net452"
Framework = "net461"
VersionSuffix = versionSuffix }))

// Windows .NET Core
Expand All @@ -351,7 +341,7 @@ Target "PublishMntr" (fun _ ->
Project = project
Configuration = configuration
Runtime = "win7-x64"
Framework = "netcoreapp1.1"
Framework = "netcoreapp2.1"
VersionSuffix = versionSuffix }))
)

Expand Down Expand Up @@ -490,14 +480,12 @@ Target "DocFx" (fun _ ->
)

FinalTarget "KillCreatedProcesses" (fun _ ->
log "Killing processes started by FAKE:"
startedProcesses |> Seq.iter (fun (pid, _) -> logfn "%i" pid)
killAllCreatedProcesses()
log "Killing any remaining dotnet and xunit.console.exe processes:"
getProcessesByName "dotnet" |> Seq.iter (fun p -> logfn "pid: %i; name: %s" p.Id p.ProcessName)
killProcess "dotnet"
getProcessesByName "xunit.console" |> Seq.iter (fun p -> logfn "pid: %i; name: %s" p.Id p.ProcessName)
killProcess "xunit.console"
log "Shutting down dotnet build-server"
let result = ExecProcess(fun info ->
info.FileName <- "dotnet"
info.WorkingDirectory <- __SOURCE_DIRECTORY__
info.Arguments <- "build-server shutdown") (System.TimeSpan.FromMinutes 2.0)
if result <> 0 then failwithf "dotnet build-server shutdown failed"
)

//--------------------------------------------------------------------------------
Expand Down Expand Up @@ -556,13 +544,16 @@ Target "HelpNuget" <| fun _ ->
Target "BuildRelease" DoNothing
Target "All" DoNothing
Target "Nuget" DoNothing
Target "RunTestsFull" DoNothing
Target "RunTestsNetCoreFull" DoNothing

// build dependencies
"Clean" ==> "RestorePackages" ==> "AssemblyInfo" ==> "Build" ==> "PublishMntr" ==> "BuildRelease"
"Clean" ==> "AssemblyInfo" ==> "Build" ==> "PublishMntr" ==> "BuildRelease"

// tests dependencies
// "RunTests" step doesn't require Clean ==> "RestorePackages" step
"Clean" ==> "RestorePackages" ==> "RunTestsNetCore"
// "RunTests" and "RunTestsNetCore" don't use clean / build so they can be run multiple times, successively, without rebuilding
"Build" ==> "RunTests" ==> "RunTestsFull"
"Build" ==> "RunTestsNetCore" ==> "RunTestsNetCoreFull"

// nuget dependencies
"BuildRelease" ==> "CreateMntrNuget" ==> "CreateNuget" ==> "PublishNuget" ==> "Nuget"
Expand Down
6 changes: 3 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ Param(

$FakeVersion = "4.63.0"
$NBenchVersion = "1.0.1"
$DotNetChannel = "preview";
$DotNetVersion = "2.0.0";
$DotNetChannel = "LTS";
$DotNetVersion = "2.1.500";
$DotNetInstallerUri = "https://raw.githubusercontent.com/dotnet/cli/v$DotNetVersion/scripts/obtain/dotnet-install.ps1";
$NugetVersion = "4.3.0";
$NugetUrl = "https://dist.nuget.org/win-x86-commandline/v$NugetVersion/nuget.exe"
$ProtobufVersion = "3.4.0"
$DocfxVersion = "2.21.1"
$DocfxVersion = "2.40.5"

# Make sure tools folder exists
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
Expand Down
16 changes: 7 additions & 9 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ NUGET_URL=https://dist.nuget.org/win-x86-commandline/v4.3.0/nuget.exe
FAKE_VERSION=4.63.0
FAKE_EXE=$TOOLS_DIR/FAKE/tools/FAKE.exe
DOTNET_EXE=$SCRIPT_DIR/.dotnet/dotnet
DOTNET_VERSION=1.1.0
DOTNET_VERSION=2.1.500
DOTNET_INSTALLER_URL=https://raw.githubusercontent.com/dotnet/cli/v$DOTNET_VERSION/scripts/obtain/dotnet-install.sh
DOTNET_CHANNEL=LTS
PROTOBUF_VERSION=3.4.0

# Define default arguments.
Expand Down Expand Up @@ -44,15 +45,12 @@ fi
# INSTALL .NET CORE CLI
###########################################################################

if [ ! -f "$DOTNET_EXE" ]; then
echo "Installing .NET CLI..."
if [ ! -d "$SCRIPT_DIR/.dotnet" ]; then
mkdir "$SCRIPT_DIR/.dotnet"
fi
curl -Lsfo "$SCRIPT_DIR/.dotnet/dotnet-install.sh" $DOTNET_INSTALLER_URL
bash "$SCRIPT_DIR/.dotnet/dotnet-install.sh" --version $DOTNET_VERSION --install-dir .dotnet --no-path
echo "Installing .NET CLI..."
if [ ! -d "$SCRIPT_DIR/.dotnet" ]; then
mkdir "$SCRIPT_DIR/.dotnet"
fi

curl -Lsfo "$SCRIPT_DIR/.dotnet/dotnet-install.sh" $DOTNET_INSTALLER_URL
bash "$SCRIPT_DIR/.dotnet/dotnet-install.sh" --version $DOTNET_VERSION --channel $DOTNET_CHANNEL --install-dir .dotnet --no-path
export PATH="$SCRIPT_DIR/.dotnet":$PATH
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
export DOTNET_CLI_TELEMETRY_OPTOUT=1
Expand Down
5 changes: 3 additions & 2 deletions buildIncremental.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module IncrementalTests =
let SkippedTest name runtime =
match (name, runtime) with
| (EndsWith "Sqlite.Tests.csproj", NetCore) -> false
| (EndsWith "API.Tests.csproj", NetCore) -> false
| _ -> true


Expand Down Expand Up @@ -124,7 +125,7 @@ module IncrementalTests =

let getAssemblyForProject project =
try
!! ("src" @@ "**" @@ "bin" @@ "Release" @@ "net452" @@ fileNameWithoutExt project + ".dll")
!! ("src" @@ "**" @@ "bin" @@ "Release" @@ "net461" @@ fileNameWithoutExt project + ".dll")
|> Seq.head
with
| :? System.ArgumentException as ex ->
Expand All @@ -133,7 +134,7 @@ module IncrementalTests =

let getNetCoreAssemblyForProject project =
try
!! ("src" @@ "**" @@ "bin" @@ "Release" @@ "netcoreapp1.1" @@ fileNameWithoutExt project + ".dll")
!! ("src" @@ "**" @@ "bin" @@ "Release" @@ "netcoreapp2.1" @@ fileNameWithoutExt project + ".dll")
|> Seq.head
with
| :? System.ArgumentException as ex ->
Expand Down
4 changes: 2 additions & 2 deletions src/Akka.sln
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Samples.Cluster.Simple", "e
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Samples.Cluster.Transformation", "examples\Cluster\Roles\Samples.Cluster.Transformation\Samples.Cluster.Transformation.csproj", "{01B074DB-67C8-4600-8CE2-DAAAFC052261}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Akka.FSharp", "core\Akka.FSharp\Akka.FSharp.fsproj", "{483B4579-2665-49FC-A7E4-42C67FEC7531}"
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Akka.FSharp", "core/Akka.FSharp/Akka.FSharp.fsproj", "{483B4579-2665-49FC-A7E4-42C67FEC7531}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Akka.FSharp.Tests", "core\Akka.FSharp.Tests\Akka.FSharp.Tests.fsproj", "{FA2E30CC-9F2D-4BFC-9899-347B32DF7181}"
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Akka.FSharp.Tests", "core/Akka.FSharp.Tests/Akka.FSharp.Tests.fsproj", "{FA2E30CC-9F2D-4BFC-9899-347B32DF7181}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Akka.Benchmarks", "benchmark\Akka.Benchmarks\Akka.Benchmarks.csproj", "{A1D57384-A933-480A-9DF4-FA5E60AB1A67}"
EndProject
Expand Down
7 changes: 4 additions & 3 deletions src/benchmark/Akka.Benchmarks/Akka.Benchmarks.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">


<Import Project="..\..\common.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>$(NetCoreTestVersion)</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.10.14" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
<PackageReference Include="System.Collections.Immutable" Version="1.5.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\common.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net452</TargetFrameworks>
<TargetFramework>$(NetFrameworkTestVersion)</TargetFramework>
<ServerGarbageCollection>true</ServerGarbageCollection>
<RuntimeIdentifier>win7-x64</RuntimeIdentifier>
</PropertyGroup>
Expand All @@ -16,7 +17,7 @@
<ProjectReference Include="..\..\contrib\persistence\Akka.Persistence.Sqlite\Akka.Persistence.Sqlite.csproj" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net452' ">
<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkTestVersion)' ">
<DefineConstants>$(DefineConstants);THREADS</DefineConstants>
</PropertyGroup>

Expand Down
8 changes: 4 additions & 4 deletions src/benchmark/PingPong/PingPong.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\common.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net452;netcoreapp1.1</TargetFrameworks>
<TargetFrameworks>$(NetFrameworkTestVersion);$(NetCoreTestVersion)</TargetFrameworks>
<ServerGarbageCollection>true</ServerGarbageCollection>
</PropertyGroup>

Expand All @@ -14,11 +14,11 @@
<ProjectReference Include="..\..\core\Akka\Akka.csproj" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net452' ">
<ItemGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkTestVersion)' ">
<Reference Include="System.Management" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net452' ">
<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkTestVersion)' ">
<DefineConstants>$(DefineConstants);THREADS</DefineConstants>
</PropertyGroup>

Expand Down
5 changes: 2 additions & 3 deletions src/benchmark/RemotePingPong/RemotePingPong.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\common.props" />
<PropertyGroup>
<Description>Akka.Remote x-plat performance benchmark</Description>
<Copyright>Copyright (c) Akka.NET Team</Copyright>
<AssemblyTitle>RemotePingPong</AssemblyTitle>
<AssemblyName>RemotePingPong</AssemblyName>
<VersionPrefix>1.3.0</VersionPrefix>
<Authors>Akka.NET Team</Authors>
<TargetFrameworks>net461;netcoreapp1.1</TargetFrameworks>
<TargetFrameworks>$(NetFrameworkTestVersion);$(NetCoreTestVersion)</TargetFrameworks>
<OutputType>Exe</OutputType>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/benchmark/SpawnBenchmark/SpawnBenchmark.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\common.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net452;netcoreapp1.1</TargetFrameworks>
<TargetFrameworks>$(NetFrameworkTestVersion);$(NetCoreTestVersion)</TargetFrameworks>
<ServerGarbageCollection>true</ServerGarbageCollection>
</PropertyGroup>

Expand Down
11 changes: 9 additions & 2 deletions src/common.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Copyright>Copyright © 2013-2018 Akka.NET Team</Copyright>
<Copyright>Copyright © 2013-2019 Akka.NET Team</Copyright>
<Authors>Akka.NET Team</Authors>
<VersionPrefix>1.4.0</VersionPrefix>
<PackageIconUrl>http://getakka.net/images/akkalogo.png</PackageIconUrl>
Expand All @@ -10,8 +10,15 @@
</PropertyGroup>
<PropertyGroup>
<XunitVersion>2.3.1</XunitVersion>
<TestSdkVersion>15.7.2</TestSdkVersion>
<TestSdkVersion>15.9.0</TestSdkVersion>
<HyperionVersion>0.9.8</HyperionVersion>
<NewtonsoftJsonVersion>9.0.1</NewtonsoftJsonVersion>
<NetCoreTestVersion>netcoreapp2.1</NetCoreTestVersion>
<NetFrameworkTestVersion>net461</NetFrameworkTestVersion>
<NetStandardLibVersion>netstandard2.0</NetStandardLibVersion>
<NetFrameworkLibVersion>net452</NetFrameworkLibVersion>
<FluentAssertionsVersion>4.14.0</FluentAssertionsVersion>
<FsCheckVersion>2.9.0</FsCheckVersion>
<AkkaPackageTags>akka;actors;actor model;Akka;concurrency</AkkaPackageTags>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<PropertyGroup>
<AssemblyTitle>Akka.Cluster.Sharding</AssemblyTitle>
<TargetFrameworks>net452;netcoreapp1.1</TargetFrameworks>
<TargetFrameworks>$(NetFrameworkTestVersion);$(NetCoreTestVersion)</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand All @@ -18,19 +18,18 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(TestSdkVersion)" />
<PackageReference Include="xunit" Version="$(XunitVersion)" />
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitVersion)" />
<DotNetCliToolReference Include="dotnet-xunit" Version="$(XunitVersion)" />
<PackageReference Include="FluentAssertions" Version="4.14.0" />
<PackageReference Include="FluentAssertions" Version="$(FluentAssertionsVersion)" />
</ItemGroup>

<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net452' ">
<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkTestVersion)' ">
<DefineConstants>$(DefineConstants);</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.1' ">
<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetCoreTestVersion)' ">
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
</PropertyGroup>

Expand Down
Loading

0 comments on commit e72782f

Please sign in to comment.