anchor.diff:  
   
   // --------------------------------------------------------------------------------------
  -// .NET CLI and .NET Core
  +// .NET Core SDK and .NET Core
   
   let assertExitCodeZero x = if x = 0 then () else failwithf "Command failed with exit code %i" x
  -let netcoreFW = "netstandard1.5"
  -
  -Target "DotnetCliBuild" (fun _ ->
  +
  +Target "Build.NetCore" (fun _ ->
       Shell.Exec("dotnet", "restore") |> assertExitCodeZero
  -    Shell.Exec("dotnet", sprintf "--verbose build --framework %s --configuration Release" netcoreFW, "src/Chessie") |> assertExitCodeZero
  -)
  -
  -Target "DotnetCliRunTests" (fun _ ->
  +    Shell.Exec("dotnet", "--verbose pack --configuration Release", "src/Chessie") |> assertExitCodeZero
  +)
  +
  +Target "RunTests.NetCore" (fun _ ->
       // Run tests (Chessie.Tests)
  -    Shell.Exec("dotnet", sprintf "--verbose run --framework %s --configuration Release" netcoreFW, "tests/Chessie.Tests") |> assertExitCodeZero
  -
  -    // Run tests (Chessie.CSharp.Test) 
  -    Shell.Exec("dotnet", sprintf "--verbose run --framework %s --configuration Release" netcoreFW, "tests/Chessie.CSharp.Test") |> assertExitCodeZero
  -)
  -
  -let isDotnetCLIInstalled = Shell.Exec("dotnet", "--version") = 0
  -
  -Target "AddNetcoreToNupkg" (fun _ ->
  -    let nupkg = sprintf "../../temp/Chessie.%s.nupkg" (release.AssemblyVersion)
  -
  +    Shell.Exec("dotnet", "test --configuration Release", "tests/Chessie.Tests") |> assertExitCodeZero
  +
  +    // Run tests (Chessie.CSharp.Test)
  +    Shell.Exec("dotnet", "test --configuration Release", "tests/Chessie.CSharp.Test") |> assertExitCodeZero
  +)
  +
  +let isDotnetSDKInstalled = try Shell.Exec("dotnet", "--version") = 0 with _ -> false
  +
  +Target "Nuget.AddNetCore" (fun _ ->
       Shell.Exec("dotnet", "--verbose pack --configuration Release", "src/Chessie") |> assertExitCodeZero
   
  +    let nupkg = sprintf "../../bin/Chessie.%s.nupkg" (release.AssemblyVersion)
       let netcoreNupkg = sprintf "bin/Release/Chessie.%s.nupkg" (release.AssemblyVersion)
   
  -    Shell.Exec("dotnet", sprintf """mergenupkg --source "%s" --other "%s" --framework "%s" """ nupkg netcoreNupkg netcoreFW, "src/Chessie/") |> assertExitCodeZero
  +    Shell.Exec("dotnet", sprintf """mergenupkg --source "%s" --other "%s" --framework netstandard1.6 """ nupkg netcoreNupkg, "src/Chessie/") |> assertExitCodeZero
   )
   
   // --------------------------------------------------------------------------------------
  
positive.code: "Clean"
    ==> "AssemblyInfo"
    ==> "Build"
    =?> ("DotnetCliBuild", isDotnetCLIInstalled)
    ==> "RunTests"
    =?> ("DotnetCliRunTests", isDotnetCLIInstalled)
    =?> ("GenerateReferenceDocs",isLocalBuild)
    =?> ("GenerateDocs",isLocalBuild)
    ==> "All"
  
negative.code:   =?> ("SourceLink", Pdbstr.tryFind().IsSome )
  #endif
    ==> "NuGet"
    =?> ("Nuget.AddNetCore", isDotnetSDKInstalled)
    ==> "BuildPackage"
  
  "CleanDocs"
  