Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Build System to .NET Core 2.1, projects to .NET Standard 2.0 and .NET 4.5.2 #3668

Merged
merged 91 commits into from
May 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
e733d7d
migrated to 'dotnet test'
Aaronontheweb Dec 3, 2018
b660f96
added missing variable for detecing TeamCity
Aaronontheweb Dec 3, 2018
998c8aa
added more targets for end-to-end testing and building
Aaronontheweb Dec 3, 2018
f4f5266
fixed issue with dotnet test lockup for Akka.Cluster.Tests
Aaronontheweb Dec 3, 2018
0052124
upgraded all core projects to standards
Aaronontheweb Dec 3, 2018
7f1bad6
fixed all major build issues thus far
Aaronontheweb Dec 3, 2018
64e05dd
upgraded all contrib/cluster projects
Aaronontheweb Dec 3, 2018
3222ded
completed standardizing all projects
Aaronontheweb Dec 3, 2018
744174c
fixed issue with Akka.DI.Core
Aaronontheweb Dec 4, 2018
f2705a5
upgrade Linux to .NET Core 2.0 SDK
Aaronontheweb Dec 4, 2018
0e11daf
further fixes to build.sh
Aaronontheweb Dec 4, 2018
7433d4f
changed search location for MNTR assemblies
Aaronontheweb Dec 4, 2018
30afd8e
upgraded MNTR to .NET 4.6.1
Aaronontheweb Dec 4, 2018
dd36b56
fixed build.sh dotnet-install command
Aaronontheweb Dec 4, 2018
39df275
fixed .NET Core test execution
Aaronontheweb Dec 4, 2018
47ee3c9
fixed issue with Akka.Remote.Tests.MultiNode outputting to wrong spot
Aaronontheweb Dec 4, 2018
3fb8102
added channel to build.sh
Aaronontheweb Dec 4, 2018
57fd76e
changed to wget
Aaronontheweb Dec 4, 2018
8f2c9d0
fixed dotnet installer url
Aaronontheweb Dec 4, 2018
7cae2de
skip API approvals on .NET Core
Aaronontheweb Dec 4, 2018
d1f7190
fixed issue with MNTR NuGet packaging
Aaronontheweb Dec 5, 2018
ffa0c84
disabled FsCheck
Aaronontheweb Dec 6, 2018
6ff6947
attempted to address Akka.Persistence memory leak
Aaronontheweb Dec 14, 2018
f7701da
Merge branch 'dev' into upgrade-build-system
Aaronontheweb Dec 14, 2018
ca49005
migrated to 'dotnet test'
Aaronontheweb Dec 3, 2018
594449c
added missing variable for detecing TeamCity
Aaronontheweb Dec 3, 2018
c165fcd
added more targets for end-to-end testing and building
Aaronontheweb Dec 3, 2018
6a8150d
fixed issue with dotnet test lockup for Akka.Cluster.Tests
Aaronontheweb Dec 3, 2018
1f4f831
rebased on dev
Aaronontheweb Mar 12, 2019
e708924
fixed all major build issues thus far
Aaronontheweb Dec 3, 2018
df751a1
upgraded all contrib/cluster projects
Aaronontheweb Dec 3, 2018
8f00ff2
completed standardizing all projects
Aaronontheweb Dec 3, 2018
a7b4658
fixed issue with Akka.DI.Core
Aaronontheweb Dec 4, 2018
f32369a
upgrade Linux to .NET Core 2.0 SDK
Aaronontheweb Dec 4, 2018
001269e
further fixes to build.sh
Aaronontheweb Dec 4, 2018
2735d89
changed search location for MNTR assemblies
Aaronontheweb Dec 4, 2018
5f4aec5
upgraded MNTR to .NET 4.6.1
Aaronontheweb Dec 4, 2018
72ff90e
fixed build.sh dotnet-install command
Aaronontheweb Dec 4, 2018
1a317e0
fixed .NET Core test execution
Aaronontheweb Dec 4, 2018
234e0e2
fixed issue with Akka.Remote.Tests.MultiNode outputting to wrong spot
Aaronontheweb Dec 4, 2018
c28395e
added channel to build.sh
Aaronontheweb Dec 4, 2018
b005d09
changed to wget
Aaronontheweb Dec 4, 2018
0893429
fixed dotnet installer url
Aaronontheweb Dec 4, 2018
119f24f
skip API approvals on .NET Core
Aaronontheweb Dec 4, 2018
412f0b2
fixed issue with MNTR NuGet packaging
Aaronontheweb Dec 5, 2018
d7e2e35
disabled FsCheck
Aaronontheweb Dec 6, 2018
3415005
attempted to address Akka.Persistence memory leak
Aaronontheweb Dec 14, 2018
0858743
Merge branch 'dev' into upgrade-build-system
Aaronontheweb Mar 12, 2019
9e0387c
fixed merge
Aaronontheweb Mar 12, 2019
e2002de
fixed issue with Akka.Streams tests
Aaronontheweb Mar 12, 2019
9c02811
standardized FluentAssertions version
Aaronontheweb Mar 12, 2019
835e53f
fixed compilation of TCK
Aaronontheweb Mar 12, 2019
b000b76
upgraded to .NET Core 2.1 SDK
Aaronontheweb Mar 12, 2019
df0342c
removed restore stage - no longer needed
Aaronontheweb Mar 12, 2019
f76e09f
bumpe tests to .NET Core 2.1
Aaronontheweb Mar 12, 2019
175d6ca
Revert "bumpe tests to .NET Core 2.1"
Aaronontheweb Mar 12, 2019
48a038d
workaround https://github.com/Microsoft/msbuild/issues/2275 until .NE…
Aaronontheweb Mar 12, 2019
1b1a836
Revert "upgraded to .NET Core 2.1 SDK"
Aaronontheweb Mar 12, 2019
35f9f99
improved test error result handling
Aaronontheweb Mar 12, 2019
c20b98c
Revert "Revert "upgraded to .NET Core 2.1 SDK""
Aaronontheweb Mar 15, 2019
c2b92f8
Revert "Revert "bumpe tests to .NET Core 2.1""
Aaronontheweb Mar 15, 2019
f2dd888
moving onto .NET Standard 2.0
Aaronontheweb Mar 15, 2019
af23648
standardized most test projects
Aaronontheweb Mar 15, 2019
6770a88
fixed common.props references
Aaronontheweb Mar 15, 2019
69a300d
fixed .NET Core 2.1 build systems
Aaronontheweb Mar 15, 2019
9991dcc
Merge branch 'dev' into upgrade-build-system
Aaronontheweb Mar 15, 2019
620acb8
fixed issue with packing MNTR
Aaronontheweb Mar 18, 2019
a1bbf86
Merge branch 'upgrade-build-system' of https://github.com/Aarononthew…
Aaronontheweb Mar 18, 2019
1545123
fixed issue with single test failure stopping build
Aaronontheweb Mar 18, 2019
9fad68e
fixed failure handling
Aaronontheweb Mar 18, 2019
11b565a
fixed issues with Akka.Streams specs
Aaronontheweb Mar 18, 2019
e64291c
fixed scan for incremental tests
Aaronontheweb Mar 18, 2019
3960fd0
working on FsCheck standardization issues
Aaronontheweb Mar 18, 2019
6281a0e
removed more net implicit standard junk
Aaronontheweb Mar 18, 2019
dc2c750
cleaning up implicit package versions; bumped to JSON.NET 12.0.1
Aaronontheweb Mar 18, 2019
fc4d5d5
fixed port bindings for Akka.Cluster.Tools and Akka.Cluster.Sharding …
Aaronontheweb Mar 18, 2019
9c0992f
fixed more ports
Aaronontheweb Mar 18, 2019
e0ee668
fixed compilation errors
Aaronontheweb Mar 18, 2019
37713a3
rolled back to Newtonsoft.Json 9.0.1
Aaronontheweb Mar 18, 2019
21fb71e
disabled parallelization in Akka.Streams.Tests
Aaronontheweb Mar 18, 2019
91f7b62
added xunit.runner.json
Aaronontheweb Mar 18, 2019
2136bbc
Disabled xunit.runner.json for Akka.Streams.Tests
Aaronontheweb Mar 19, 2019
b40f338
added more debug logging to scriptedtest
Aaronontheweb Mar 20, 2019
8256717
issue appears to be the 1ms deadline not being long enough on .NET Co…
Aaronontheweb Mar 20, 2019
1784991
fixed race condition with Bug2640Spec for #2640
Aaronontheweb Mar 20, 2019
3d43223
updated API approvals
Aaronontheweb Mar 20, 2019
57184bc
fixed issue with Bug2640Spec again
Aaronontheweb Mar 20, 2019
797f384
same fix as previous
Aaronontheweb Mar 20, 2019
bcddb44
Merge branch 'dev' into upgrade-build-system
Aaronontheweb Apr 4, 2019
3cb00ad
Merge branch 'dev' into upgrade-build-system
Aaronontheweb Apr 30, 2019
28a1f28
Merge branch 'dev' into upgrade-build-system
Aaronontheweb May 16, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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