Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d736bc

Browse files
committed
just build the FCS library
1 parent 727ac4d commit 9d736bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fcs/build.fsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ Target.create "Clean" (fun _ ->
5454
Target.create "Restore" (fun _ ->
5555
// We assume a paket restore has already been run
5656
runDotnet __SOURCE_DIRECTORY__ "restore" "../src/buildtools/buildtools.proj -v n"
57-
runDotnet __SOURCE_DIRECTORY__ "restore" "FSharp.Compiler.Service.sln -v n"
57+
runDotnet __SOURCE_DIRECTORY__ "restore" "FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj -v n"
5858
)
5959

6060
Target.create "Build" (fun _ ->
6161
runDotnet __SOURCE_DIRECTORY__ "build" "../src/buildtools/buildtools.proj -v n -c Proto"
6262
let fslexPath = __SOURCE_DIRECTORY__ + "/../artifacts/bin/fslex/Proto/netcoreapp3.1/fslex.dll"
6363
let fsyaccPath = __SOURCE_DIRECTORY__ + "/../artifacts/bin/fsyacc/Proto/netcoreapp3.1/fsyacc.dll"
64-
runDotnet __SOURCE_DIRECTORY__ "build" (sprintf "FSharp.Compiler.Service.sln -nodereuse:false -v n -c Release /p:DisableCompilerRedirection=true /p:FsLexPath=%s /p:FsYaccPath=%s" fslexPath fsyaccPath)
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)
6565
)
6666

6767
Target.create "Test" (fun _ ->
@@ -70,7 +70,7 @@ Target.create "Test" (fun _ ->
7070

7171
// Now run the tests (different output files per TFM)
7272
let logFilePath = Path.Combine(__SOURCE_DIRECTORY__, "..", "artifacts", "TestResults", "Release", "FSharp.Compiler.Service.Test.{framework}.xml")
73-
runDotnet __SOURCE_DIRECTORY__ "test" (sprintf "FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj --no-restore --no-build -nodereuse:false -v n -c Release --logger \"nunit;LogFilePath=%s\"" logFilePath)
73+
runDotnet (Path.Combine(__SOURCE_DIRECTORY__, "FSharp.Compiler.Service.Tests")) "test" (sprintf "FSharp.Compiler.Service.Tests.fsproj --no-restore --no-build -nodereuse:false -v n -c Release --logger \"nunit;LogFilePath=%s\"" logFilePath)
7474
)
7575

7676
Target.create "NuGet" (fun _ ->
@@ -80,7 +80,7 @@ Target.create "NuGet" (fun _ ->
8080
Common = packOpts.Common |> withDotnetExe |> DotNet.Options.withVerbosity (Some DotNet.Verbosity.Normal)
8181
MSBuildParams = { packOpts.MSBuildParams with
8282
Properties = packOpts.MSBuildParams.Properties @ [ "Version", assemblyVersion; "VersionPrefix", assemblyVersion; "PackageReleaseNotes", release.Notes |> String.concat "\n" ] }
83-
}) "FSharp.Compiler.Service.sln"
83+
}) "FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj"
8484
)
8585

8686
Target.create "GenerateDocs" (fun _ ->

0 commit comments

Comments
 (0)