Skip to content

Commit d0324e7

Browse files
committed
build using netcore sln
1 parent 352594c commit d0324e7

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

build.fsx

+8-15
Original file line numberDiff line numberDiff line change
@@ -214,39 +214,32 @@ let dotnet workDir = runCmdIn workDir "dotnet"
214214
Target "DotnetGenerate" ^ fun _ ->
215215
GenNetcore.generateNetcoreProjects __SOURCE_DIRECTORY__
216216

217-
let netcoreFiles = !! "src/netcore/*/*.fsproj" |> Seq.toList
217+
let netcoresln = "src/netcore/FSharp.Editing.netcore.sln"
218218

219219
Target "DotnetRestore" ^ fun _ ->
220-
try netcoreFiles |> Seq.iter ^ fun proj ->
221-
DotNetCli.Restore ^ fun c ->
220+
try DotNetCli.Restore ^ fun c ->
222221
{ c with
223-
Project = proj
222+
Project = netcoresln
224223
ToolPath = dotnetExePath
225-
//AdditionalArgs =
226-
//[ "-s https://dotnet.myget.org/F/roslyn/api/v3/index.json"
227-
// "-s https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json"
228-
//]}
229224
}
230225
with ex -> traceError ex.Message
231226

232227
Target "DotnetBuild" ^ fun _ ->
233-
netcoreFiles |> Seq.iter ^ fun proj ->
234228
DotNetCli.Build ^ fun c ->
235229
{ c with
236-
Project = proj
230+
Project = netcoresln
237231
ToolPath = dotnetExePath
238-
//Configuration = "Release"
239-
//AdditionalArgs = [ "/ds"; "/m"; (*"/pp"*) ]
232+
Configuration = "Release"
233+
AdditionalArgs = [ "/ds"; "/m"; (*"/pp"*) ]
240234
}
241235

242236

243237
Target "DotnetPackage" ^ fun _ ->
244-
netcoreFiles |> Seq.iter ^ fun proj ->
245238
DotNetCli.Pack ^ fun c ->
246239
{ c with
247-
Project = proj
240+
Project = netcoresln
248241
ToolPath = dotnetExePath
249-
AdditionalArgs = [(sprintf "-o %s" currentDirectory </> tempDir </> "dotnetcore"); (sprintf "/p:Version=%s" release.NugetVersion)]
242+
AdditionalArgs = [(sprintf "-o %s" currentDirectory </> tempDir </> "dotnetcore"); (sprintf "/p:Version=%s-alpha" release.NugetVersion)]
250243
}
251244

252245

0 commit comments

Comments
 (0)