Skip to content

Commit ffb4593

Browse files
committed
Use local build of FSCS
1 parent 541389a commit ffb4593

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

scripts/nuget.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# Build F# compiler service, which is assumed to be in a sibling directory named 'FSharp.Compiler.Service'
5+
cd ../FSharp.Compiler.Service/
6+
fcs/build.sh NuGet
7+
8+
# Copy result of previous step to nuget/, a local nuget feed
9+
cd ../fsharp-language-server
10+
rm -rf nuget/fsharp.compiler.service
11+
nuget add ../FSharp.Compiler.Service/release/fcs/FSharp.Compiler.Service.24.0.1.nupkg -Source ./nuget

src/FSharpLanguageServer/FSharpLanguageServer.fsproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<OutputType>Exe</OutputType>
55
<TargetFramework>netcoreapp2.0</TargetFramework>
66
<RuntimeIdentifiers>win10-x64;osx.10.11-x64</RuntimeIdentifiers>
7+
<RestoreSources>$(RestoreSources);../../nuget</RestoreSources>
78
</PropertyGroup>
89

910
<ItemGroup>
@@ -18,7 +19,7 @@
1819
</ItemGroup>
1920

2021
<ItemGroup>
21-
<PackageReference Include="FSharp.Compiler.Service" Version="23.0.3" />
22+
<PackageReference Include="FSharp.Compiler.Service" Version="24.0.1" />
2223
<PackageReference Include="HtmlAgilityPack" Version="1.8.4" />
2324
</ItemGroup>
2425

0 commit comments

Comments
 (0)