You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/corelib.fsx
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -7,23 +7,23 @@ Compiler Services: Notes on FSharp.Core.dll
7
7
Shipping an FSharp.Core with your application
8
8
---------------------------------------------
9
9
10
+
When building applications or plug-in components which use FSharp.Compiler.Service.dll, you will normally also
11
+
include a copy of FSharp.Core.dll as part of your application.
10
12
11
-
When building applications or plug-in components which use FSharp.Compiler.Service.dll, you will normally need
12
-
to ship a copy of FSharp.Core.dll as part of your application.
13
-
14
-
For example, if you build a HostedCompiler.exe, you will normally place an FSharp.Core.dll (say 4.3.1.0) alongside
15
-
your HostedCompiler.exe.
13
+
For example, if you build a ``HostedCompiler.exe``, you will normally place an FSharp.Core.dll (say 4.3.1.0) alongside
14
+
your ``HostedCompiler.exe``.
16
15
17
16
If doing dynamic compilation and execution you may also need to include
18
-
an FSharp.Core.optdata and FSharp.Core.sigdata, see below.
17
+
an FSharp.Core.optdata and FSharp.Core.sigdata, see below for guidance.
19
18
20
19
Binding redirects for your application
21
20
--------------------------------------
22
21
23
22
The FSharp.Compiler.Service.dll component depends on FSharp.Core 4.3.0.0. Normally your application will target
24
-
a later version of FSharp.Core. This means you will also need a binding-redirect file to make sure
25
-
that FSharp.Core 4.3.0.0 forwards to which ever final version of FSharp.Core.dll your application runs correctly.
26
-
Binding redirect files are normally generated automatically by build tooling. If not, you can use a
23
+
a later version of FSharp.Core, and you will need a [binding redirect](http://msdn.microsoft.com/en-us/library/7wd6ex19(v=vs.110).aspx) to ensure
24
+
that FSharp.Core 4.3.0.0 forwards to which the final version of FSharp.Core.dll your application uses.
25
+
Binding redirect files are normally generated automatically by build tooling. If not, you can use one like this
26
+
(if your tool is called ``HostedCompiler.exe``, the binding redirect file is called ``HostedCompiler.exe.config``)
27
27
28
28
<?xml version="1.0" encoding="utf-8" ?>
29
29
<configuration>
@@ -64,7 +64,7 @@ arguments are always making an explicit reference, then you should _not_ include
64
64
65
65
66
66
If you do _not_ explicitly reference an FSharp.Core.dll from an SDK location, then an implicit reference will be made
67
-
to whichever FSharp.Core.dll your tool is running. This means your tool will almost certainly implicitly reference the FSharp.Core.dll
67
+
to which ever version of FSharp.Core.dll your tool is running. This means your tool will almost certainly implicitly reference the FSharp.Core.dll
68
68
that is part of your application. In this case, you may either get an error that FSharp.Core.optdata and FSharp.Core.sigdata are not
69
69
found alongside FSharp.Core.dll. If you want to implicitly reference the FSharp.Core.dll you are including in your application,
70
70
then also add FSharp.Core.sigdata and FSharp.Core.optdata as two additional files to your application. When using CompileToDynamicAssembly, this problem
0 commit comments