@@ -145,11 +145,21 @@ Target.create "CopyBinaries" (fun _ ->
145145 |> Seq.iter ( fun ( fromDir , toDir ) -> Shell.copyDir toDir fromDir ( fun _ -> true ))
146146)
147147
148+ Target.create " CopyBinariesDotnet" ( fun _ ->
149+ !! " src/**/*.fsproj"
150+ -- " src/FSharp.Plotly.WPF/FSharp.Plotly.WPF.fsproj"
151+ |> Seq.map ( fun f -> (( Path.getDirectory f) </> " bin" </> " Dotnet" , " bin" </> ( Path.GetFileNameWithoutExtension f)))
152+ |> Seq.iter ( fun ( fromDir , toDir ) -> Shell.copyDir toDir fromDir ( fun _ -> true ))
153+ )
154+
155+
148156// --------------------------------------------------------------------------------------
149157// Clean build results
150158
151159let buildConfiguration = DotNet.Custom <| Environment.environVarOrDefault " configuration" configuration
152160
161+ let dotnetCoreConfiguration = DotNet.Custom " Dotnet"
162+
153163Target.create " Clean" ( fun _ ->
154164 Shell.cleanDirs [ " bin" ; " temp" ; " pkg" ]
155165)
@@ -168,6 +178,13 @@ Target.create "Build" (fun _ ->
168178 Configuration = buildConfiguration })
169179)
170180
181+ Target.create " BuildDotnet" ( fun _ ->
182+ solutionFile
183+ |> DotNet.build ( fun p ->
184+ { p with
185+ Configuration = dotnetCoreConfiguration }
186+ )
187+ )
171188
172189// --------------------------------------------------------------------------------------
173190// Run the unit tests using test runner
@@ -286,6 +303,7 @@ Target.create "GitReleaseNuget" (fun _ ->
286303Target.create " All" ignore
287304Target.create " CIBuild" ignore
288305Target.create " BuildOnly" ignore
306+ Target.create " DotnetCoreBuild" ignore
289307
290308" Clean"
291309 ==> " CleanDocs"
@@ -307,6 +325,13 @@ Target.create "BuildOnly" ignore
307325 ==> " BuildReleasePackages"
308326 ==> " All"
309327
328+ " Clean"
329+ ==> " CleanDocs"
330+ ==> " AssemblyInfo"
331+ ==> " BuildDotnet"
332+ ==> " CopyBinariesDotnet"
333+ ==> " DotnetCoreBuild"
334+
310335" Clean"
311336 ==> " CleanDocs"
312337 ==> " AssemblyInfo"
0 commit comments