@@ -89,7 +89,7 @@ Target "GenerateFSIStrings" (fun _ ->
8989 // |> ignore
9090)
9191
92- Target " Build" ( fun _ ->
92+ Target " Build.NetFx " ( fun _ ->
9393 netFrameworks
9494 |> List.iter ( fun framework ->
9595 !! ( project + " .sln" )
@@ -124,7 +124,7 @@ Target "SourceLink" (fun _ ->
124124// --------------------------------------------------------------------------------------
125125// Run the unit tests using test runner
126126
127- Target " RunTests" ( fun _ ->
127+ Target " RunTests.NetFx " ( fun _ ->
128128 !! ( if isAppVeyorBuild then " ./bin/v4.5/FSharp.Compiler.Service.Tests.dll"
129129 else " ./bin/**/FSharp.Compiler.Service.Tests.dll" )
130130 |> NUnit ( fun p ->
@@ -138,7 +138,7 @@ Target "RunTests" (fun _ ->
138138// --------------------------------------------------------------------------------------
139139// Build a NuGet package
140140
141- Target " NuGet" ( fun _ ->
141+ Target " NuGet.NetFx " ( fun _ ->
142142 Paket.Pack ( fun p ->
143143 { p with
144144 TemplateFile = " nuget/FSharp.Compiler.Service.template"
@@ -281,28 +281,30 @@ Target "RunTests.NetCore" (fun _ ->
281281//use dotnet-mergenupkg to merge the .netcore nuget package into the default one
282282Target " Nuget.AddNetCore" ( fun _ ->
283283 do
284- let nupkg = sprintf " ../../../%s /FSharp.Compiler.Service.%s .nupkg" buildDir ( release.AssemblyVersion)
285- let netcoreNupkg = sprintf " bin/Release/FSharp.Compiler.Service.%s .nupkg" ( release.AssemblyVersion)
284+ let nupkg = sprintf " ../../../%s /FSharp.Compiler.Service.%s .nupkg" buildDir release.AssemblyVersion
285+ let netcoreNupkg = sprintf " bin/Release/FSharp.Compiler.Service.%s .nupkg" release.AssemblyVersion
286286 runCmdIn " src/fsharp/FSharp.Compiler.Service" " dotnet" " mergenupkg --source %s --other %s --framework netstandard1.6" nupkg netcoreNupkg
287287
288288 do
289- let nupkg = sprintf " ../../../%s /FSharp.Compiler.Service.ProjectCracker.%s .nupkg" buildDir ( release.AssemblyVersion)
290- let netcoreNupkg = sprintf " bin/Release/FSharp.Compiler.Service.ProjectCracker.%s .nupkg" ( release.AssemblyVersion)
289+ let nupkg = sprintf " ../../../%s /FSharp.Compiler.Service.ProjectCracker.%s .nupkg" buildDir release.AssemblyVersion
290+ let netcoreNupkg = sprintf " bin/Release/FSharp.Compiler.Service.ProjectCracker.%s .nupkg" release.AssemblyVersion
291291 runCmdIn " src/fsharp/FSharp.Compiler.Service.ProjectCracker" " dotnet" " mergenupkg --source %s --other %s --framework netstandard1.6" nupkg netcoreNupkg
292292)
293293
294294// --------------------------------------------------------------------------------------
295295// Run all targets by default. Invoke 'build <Target>' to override
296296
297- Target " Prepare" DoNothing
298- Target " PrepareRelease" DoNothing
299297Target " Release" DoNothing
300298Target " CreatePackage" DoNothing
299+ Target " NuGet" DoNothing
301300Target " All" DoNothing
302301Target " All.NetCore" DoNothing
302+ Target " All.NetFx" DoNothing
303303
304304" Clean"
305+ =?> ( " BuildVersion" , isAppVeyorBuild)
305306 ==> " AssemblyInfo"
307+ ==> " GenerateFSIStrings"
306308 ==> " CodeGen.NetCore"
307309 ==> " Build.NetCore"
308310 ==> " RunTests.NetCore"
@@ -312,17 +314,25 @@ Target "All.NetCore" DoNothing
312314 =?> ( " BuildVersion" , isAppVeyorBuild)
313315 ==> " AssemblyInfo"
314316 ==> " GenerateFSIStrings"
315- ==> " Prepare"
316- ==> " Build"
317- ==> " RunTests"
317+ ==> " Build.NetFx"
318+ ==> " RunTests.NetFx"
319+ ==> " All.NetFx"
320+
321+ " All.NetFx"
318322 =?> ( " All.NetCore" , isDotnetSDKInstalled)
319323 ==> " All"
320324
325+ " All.NetCore"
326+ ==> " Nuget.AddNetCore"
327+
328+ " All.NetFx"
329+ ==> " NuGet.NetFx"
330+ =?> ( " Nuget.AddNetCore" , isDotnetSDKInstalled)
331+ ==> " NuGet"
332+
321333" All"
322- ==> " PrepareRelease"
323334 ==> " SourceLink"
324335 ==> " NuGet"
325- =?> ( " Nuget.AddNetCore" , isDotnetSDKInstalled)
326336 ==> " CreatePackage"
327337 ==> " GitHubRelease"
328338 ==> " PublishNuGet"
0 commit comments