@@ -57,11 +57,23 @@ Target.create "Restore" (fun _ ->
57
57
runDotnet __ SOURCE_ DIRECTORY__ " restore" " FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj -v n"
58
58
)
59
59
60
+ let outputs = [
61
+ " FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj"
62
+ " ../src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Nuget.fsproj"
63
+ " FSharp.Compiler.Service.MSBuild.v12/FSharp.Compiler.Service.MSBuild.v12.fsproj"
64
+ ]
65
+
60
66
Target.create " Build" ( fun _ ->
61
67
runDotnet __ SOURCE_ DIRECTORY__ " build" " ../src/buildtools/buildtools.proj -v n -c Proto"
62
68
let fslexPath = __ SOURCE_ DIRECTORY__ + " /../artifacts/bin/fslex/Proto/netcoreapp3.1/fslex.dll"
63
69
let fsyaccPath = __ SOURCE_ DIRECTORY__ + " /../artifacts/bin/fsyacc/Proto/netcoreapp3.1/fsyacc.dll"
64
- runDotnet ( Path.Combine(__ SOURCE_ DIRECTORY__, " FSharp.Compiler.Service" )) " build" ( sprintf " FSharp.Compiler.Service.fsproj -nodereuse:false -v n -c Release /p:DisableCompilerRedirection=true /p:FsLexPath=%s /p:FsYaccPath=%s " fslexPath fsyaccPath)
70
+
71
+ let build relPath =
72
+ let dir , proj = Path.getDirectory relPath, Path.GetFileName relPath
73
+ runDotnet ( Path.Combine(__ SOURCE_ DIRECTORY__, dir)) " build" ( sprintf " %s -nodereuse:false -v n -c Release /p:DisableCompilerRedirection=true /p:FsLexPath=%s /p:FsYaccPath=%s " proj fslexPath fsyaccPath)
74
+
75
+ outputs
76
+ |> List.iter build
65
77
)
66
78
67
79
Target.create " Test" ( fun _ ->
@@ -74,13 +86,16 @@ Target.create "Test" (fun _ ->
74
86
)
75
87
76
88
Target.create " NuGet" ( fun _ ->
77
- DotNet.pack ( fun packOpts ->
78
- { packOpts with
79
- Configuration = DotNet.BuildConfiguration.Release
80
- Common = packOpts.Common |> withDotnetExe |> DotNet.Options.withVerbosity ( Some DotNet.Verbosity.Normal)
81
- MSBuildParams = { packOpts.MSBuildParams with
82
- Properties = packOpts.MSBuildParams.Properties @ [ " Version" , assemblyVersion; " VersionPrefix" , assemblyVersion; " PackageReleaseNotes" , release.Notes |> String.concat " \n " ] }
83
- }) " FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj"
89
+ outputs
90
+ |> List.iter (
91
+ DotNet.pack ( fun packOpts ->
92
+ { packOpts with
93
+ Configuration = DotNet.BuildConfiguration.Release
94
+ Common = packOpts.Common |> withDotnetExe |> DotNet.Options.withVerbosity ( Some DotNet.Verbosity.Normal)
95
+ MSBuildParams = { packOpts.MSBuildParams with
96
+ Properties = packOpts.MSBuildParams.Properties @ [ " Version" , assemblyVersion; " VersionPrefix" , assemblyVersion; " PackageReleaseNotes" , release.Notes |> String.concat " \n " ] }
97
+ })
98
+ )
84
99
)
85
100
86
101
Target.create " GenerateDocs" ( fun _ ->
0 commit comments