diff --git a/build.fsx b/build.fsx index 034a59ed69..930b933a40 100644 --- a/build.fsx +++ b/build.fsx @@ -186,12 +186,15 @@ let runCmdIn workDir exe = let dotnet workDir = runCmdIn workDir "dotnet" Target "DotnetRestore" (fun _ -> - //WORKAROUND dotnet restore with paket doesnt restore the PackageReference of SourceLink // ref https://github.com/fsprojects/Paket/issues/2930 Paket.Restore (fun p -> { p with Group = "NetCoreTools" }) + DotNetCli.ToolRestore (fun c -> + { c with + ToolPath = dotnetExePath + }) DotNetCli.Restore (fun c -> { c with @@ -274,6 +277,7 @@ Target "RunIntegrationTestsNetCore" (fun _ -> TimeOut = TimeSpan.FromMinutes 60. }) ) + "Clean" ==> "DotnetPublish" ==> "RunIntegrationTestsNetCore" // -------------------------------------------------------------------------------------- @@ -361,6 +365,7 @@ Target "RunIntegrationTests" (fun _ -> Where = if testSuiteFilterFlakyTests then "cat==Flaky" else "cat!=Flaky" TimeOut = TimeSpan.FromMinutes 40. }) ) + "Clean" ==> "Build" ==> "RunIntegrationTests"