@@ -57,11 +57,23 @@ Target.create "Restore" (fun _ ->
5757 runDotnet __ SOURCE_ DIRECTORY__ " restore" " FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj -v n"
5858)
5959
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+
6066Target.create " Build" ( fun _ ->
6167 runDotnet __ SOURCE_ DIRECTORY__ " build" " ../src/buildtools/buildtools.proj -v n -c Proto"
6268 let fslexPath = __ SOURCE_ DIRECTORY__ + " /../artifacts/bin/fslex/Proto/netcoreapp3.1/fslex.dll"
6369 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
6577)
6678
6779Target.create " Test" ( fun _ ->
@@ -74,13 +86,16 @@ Target.create "Test" (fun _ ->
7486)
7587
7688Target.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+ )
8499)
85100
86101Target.create " GenerateDocs" ( fun _ ->
0 commit comments