@@ -89,7 +89,7 @@ Target "GenerateFSIStrings" (fun _ ->
89
89
// |> ignore
90
90
)
91
91
92
- Target " Build" ( fun _ ->
92
+ Target " Build.NetFx " ( fun _ ->
93
93
netFrameworks
94
94
|> List.iter ( fun framework ->
95
95
!! ( project + " .sln" )
@@ -124,7 +124,7 @@ Target "SourceLink" (fun _ ->
124
124
// --------------------------------------------------------------------------------------
125
125
// Run the unit tests using test runner
126
126
127
- Target " RunTests" ( fun _ ->
127
+ Target " RunTests.NetFx " ( fun _ ->
128
128
!! ( if isAppVeyorBuild then " ./bin/v4.5/FSharp.Compiler.Service.Tests.dll"
129
129
else " ./bin/**/FSharp.Compiler.Service.Tests.dll" )
130
130
|> NUnit ( fun p ->
@@ -138,7 +138,7 @@ Target "RunTests" (fun _ ->
138
138
// --------------------------------------------------------------------------------------
139
139
// Build a NuGet package
140
140
141
- Target " NuGet" ( fun _ ->
141
+ Target " NuGet.NetFx " ( fun _ ->
142
142
Paket.Pack ( fun p ->
143
143
{ p with
144
144
TemplateFile = " nuget/FSharp.Compiler.Service.template"
@@ -281,28 +281,30 @@ Target "RunTests.NetCore" (fun _ ->
281
281
//use dotnet-mergenupkg to merge the .netcore nuget package into the default one
282
282
Target " Nuget.AddNetCore" ( fun _ ->
283
283
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
286
286
runCmdIn " src/fsharp/FSharp.Compiler.Service" " dotnet" " mergenupkg --source %s --other %s --framework netstandard1.6" nupkg netcoreNupkg
287
287
288
288
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
291
291
runCmdIn " src/fsharp/FSharp.Compiler.Service.ProjectCracker" " dotnet" " mergenupkg --source %s --other %s --framework netstandard1.6" nupkg netcoreNupkg
292
292
)
293
293
294
294
// --------------------------------------------------------------------------------------
295
295
// Run all targets by default. Invoke 'build <Target>' to override
296
296
297
- Target " Prepare" DoNothing
298
- Target " PrepareRelease" DoNothing
299
297
Target " Release" DoNothing
300
298
Target " CreatePackage" DoNothing
299
+ Target " NuGet" DoNothing
301
300
Target " All" DoNothing
302
301
Target " All.NetCore" DoNothing
302
+ Target " All.NetFx" DoNothing
303
303
304
304
" Clean"
305
+ =?> ( " BuildVersion" , isAppVeyorBuild)
305
306
==> " AssemblyInfo"
307
+ ==> " GenerateFSIStrings"
306
308
==> " CodeGen.NetCore"
307
309
==> " Build.NetCore"
308
310
==> " RunTests.NetCore"
@@ -312,17 +314,25 @@ Target "All.NetCore" DoNothing
312
314
=?> ( " BuildVersion" , isAppVeyorBuild)
313
315
==> " AssemblyInfo"
314
316
==> " GenerateFSIStrings"
315
- ==> " Prepare"
316
- ==> " Build"
317
- ==> " RunTests"
317
+ ==> " Build.NetFx"
318
+ ==> " RunTests.NetFx"
319
+ ==> " All.NetFx"
320
+
321
+ " All.NetFx"
318
322
=?> ( " All.NetCore" , isDotnetSDKInstalled)
319
323
==> " All"
320
324
325
+ " All.NetCore"
326
+ ==> " Nuget.AddNetCore"
327
+
328
+ " All.NetFx"
329
+ ==> " NuGet.NetFx"
330
+ =?> ( " Nuget.AddNetCore" , isDotnetSDKInstalled)
331
+ ==> " NuGet"
332
+
321
333
" All"
322
- ==> " PrepareRelease"
323
334
==> " SourceLink"
324
335
==> " NuGet"
325
- =?> ( " Nuget.AddNetCore" , isDotnetSDKInstalled)
326
336
==> " CreatePackage"
327
337
==> " GitHubRelease"
328
338
==> " PublishNuGet"
0 commit comments