@@ -9,22 +9,19 @@ open Fake.Tools.Git
99open ProcNet
1010
1111let exec binary args =
12- let r = Proc.Exec ( binary, args |> List.map ( fun a -> sprintf " \" %s \" " a) |> List.toArray)
13- match r.HasValue with | true -> r.Value | false -> failwithf " invocation of `%s ` timed out" binary
12+ Proc.Exec ( binary, args |> List.toArray)
1413
1514let private restoreTools = lazy ( exec " dotnet" [ " tool" ; " restore" ])
1615let private currentVersion =
1716 lazy (
1817 restoreTools.Value |> ignore
19- let r = Proc.Start( " dotnet" , " minver" , " -p" , " canary.0" )
18+ let r = Proc.Start( " dotnet" , " minver" , " -p" , " canary.0" , " -m " , " 0.1 " )
2019 let o = r.ConsoleOut |> Seq.find ( fun l -> not ( l.Line.StartsWith " MinVer:" ))
2120 o.Line
2221 )
2322
2423let private currentVersionInformational =
25- lazy (
26- sprintf " %s +%s " currentVersion.Value ( Information.getCurrentSHA1( " ." ))
27- )
24+ lazy ( sprintf " %s +%s " currentVersion.Value ( Information.getCurrentSHA1( " ." )))
2825
2926let private clean ( arguments : ParseResults < Arguments >) =
3027 if ( Paths.Output.Exists) then Paths.Output.Delete ( true )
@@ -53,11 +50,11 @@ let private generateApiChanges (arguments:ParseResults<Arguments>) =
5350 let output = Paths.RootRelative <| Paths.Output.FullName
5451 let currentVersion = currentVersion.Value
5552 let project = Paths.RootRelative Paths.ToolProject.FullName
56- let dotnetRun = [ " run" ; " -c" ; " Release" ; " -f" ; " net9 .0" ; " --project" ; project]
53+ let dotnetRun = [ " run" ; " -c" ; " Release" ; " -f" ; " net10 .0" ; " --project" ; project]
5754 let args =
5855 [
5956 sprintf " previous-nuget|%s |%s |net8.0" Paths.ToolName currentVersion;
60- sprintf " directory|src/%s /bin/Release/net9 .0" Paths.ToolName;
57+ sprintf " directory|src/%s /bin/Release/net10 .0" Paths.ToolName;
6158 " --target" ; Paths.ToolName; " -f" ; " github-comment" ; " --output" ; output
6259 ]
6360
0 commit comments