Skip to content

Commit 8c5c92f

Browse files
authored
Merge pull request #592 from matthid/fix_coreclr_embedded_resources
Properly embed 'FSIstrings' resource, fixes #591
2 parents f12c0e8 + 6b76676 commit 8c5c92f

File tree

2 files changed

+34
-16
lines changed

2 files changed

+34
-16
lines changed

build.sh

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,37 @@
11
#!/bin/bash
2-
3-
if [[ ! -e ~/.config/.mono/certs ]];
2+
if test "$OS" = "Windows_NT"
43
then
5-
mozroots --import --sync --quiet
6-
fi
4+
# use .Net
5+
.paket/paket.bootstrapper.exe
6+
exit_code=$?
7+
if [ $exit_code -ne 0 ]; then
8+
exit $exit_code
9+
fi
710

8-
mono .paket/paket.bootstrapper.exe
9-
exit_code=$?
10-
if [ $exit_code -ne 0 ]; then
11-
exit $exit_code
12-
fi
11+
.paket/paket.exe restore
12+
exit_code=$?
13+
if [ $exit_code -ne 0 ]; then
14+
exit $exit_code
15+
fi
1316

14-
mono .paket/paket.exe restore
15-
exit_code=$?
16-
if [ $exit_code -ne 0 ]; then
17-
exit $exit_code
18-
fi
17+
packages/FAKE/tools/FAKE.exe build.fsx $@
18+
else
19+
# use mono
20+
if [[ ! -e ~/.config/.mono/certs ]]; then
21+
mozroots --import --sync --quiet
22+
fi
23+
24+
mono .paket/paket.bootstrapper.exe
25+
exit_code=$?
26+
if [ $exit_code -ne 0 ]; then
27+
exit $exit_code
28+
fi
1929

20-
mono --runtime=v4.0 packages/FAKE/tools/FAKE.exe build.fsx -d:MONO "$@"
30+
mono .paket/paket.exe restore
31+
exit_code=$?
32+
if [ $exit_code -ne 0 ]; then
33+
exit $exit_code
34+
fi
35+
36+
mono packages/FAKE/tools/FAKE.exe $@ --fsiargs -d:MONO build.fsx
37+
fi

src/fsharp/FSharp.Compiler.Service.netcore/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@
192192
"embed": {
193193
"mappings": {
194194
"FSComp": "FSComp.resx",
195-
"FSStrings": "../FSStrings.resx"
195+
"FSStrings": "../FSStrings.resx",
196+
"FSIstrings": "FSIstrings.resx"
196197
}
197198
},
198199
"define": [

0 commit comments

Comments
 (0)