anchor.diff:  // --------------------------------------------------------------------------------------
   // Build library & test project
   
  -Target "DotNet.Restore" (fun _ -> DotNetCli.Restore id)
  -
   let build configuration () =
  -    // Build the rest of the project
  -    { BaseDirectory = __SOURCE_DIRECTORY__
  -      Includes = [ project + ".sln" ]
  -      Excludes = [] } 
  -    |> MSBuild "" "Build" ["Configuration", configuration; "SourceLinkCreate", "true"]
  -    |> Log ""
  +    DotNetCli.Build(fun c ->
  +        { c with
  +            Project = project + ".sln"
  +            Configuration = configuration
  +            AdditionalArgs = [ "-p:SourceLinkCreate=true" ]
  +        })
   
   Target "Build.Release" (build "Release")
   Target "Build.Release-NoEmit" (build "Release-NoEmit")
  
positive.code:         DotNetCli.Test (fun c ->
              { c with
                  Project = proj
                  Configuration = config })
      else
          // work around xunit/mono issue
          let projDir = Path.GetDirectoryName proj
          let projName = Path.GetFileNameWithoutExtension proj
          let netcoreFrameworks, legacyFrameworks = 
              !! (projDir @@ "bin" @@ config @@ "*/")
              |> Seq.map Path.GetFileName
              |> Seq.toArray
              |> Array.partition 
                  (fun f -> 
                      f.StartsWith "netcore" || 
                      f.StartsWith "netstandard")
              
  
          for framework in netcoreFrameworks do
              DotNetCli.Test (fun c ->
                  { c with
                      Project = proj
                      Framework = framework
                      Configuration = config })
  
          for framework in legacyFrameworks do
              let assembly = projDir @@ "bin" @@ config @@ framework @@ projName + ".dll"
              !! assembly
              |> NUnit3 (fun c ->
                  { c with
                      OutputDir = sprintf "TestResult.%s.xml" config
                      TimeOut = TimeSpan.FromMinutes 20. })
  
  Target "RunTests" DoNothing
  
  
negative.code:   ==> "Clean"
    ==> "AssemblyInfo"
    ==> "Prepare"
    ==> "Build.Release"
    ==> "Build.Release-NoEmit"
    ==> "Build"
  