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
include a copy of FSharp.Core.dll as part of your application.</p>
41
41
<p>For example, if you build a <code>HostedCompiler.exe</code>, you will normally place an FSharp.Core.dll (say 4.3.1.0) alongside
42
42
your <code>HostedCompiler.exe</code>.</p>
43
-
<p>If doing dynamic compilation and execution you may also need to include
44
-
an FSharp.Core.optdata and FSharp.Core.sigdata, see below for guidance.</p>
45
43
<h2><aname="Binding-redirects-for-your-application" class="anchor" href="#Binding-redirects-for-your-application">Binding redirects for your application</a></h2>
46
44
<p>The FSharp.Compiler.Service.dll component depends on FSharp.Core 4.4.0.0. Normally your application will target
47
-
a later version of FSharp.Core, and you will need a <ahref="http://msdn.microsoft.com/en-us/library/7wd6ex19(v=vs.110).aspx">binding redirect</a> to ensure
45
+
a later version of FSharp.Core, and you may need a <ahref="http://msdn.microsoft.com/en-us/library/7wd6ex19(v=vs.110).aspx">binding redirect</a> to ensure
48
46
that other versions of FSharp.Core forward to the final version of FSharp.Core.dll your application uses.
49
47
Binding redirect files are normally generated automatically by build tools. If not, you can use one like this
50
48
(if your tool is called <code>HostedCompiler.exe</code>, the binding redirect file is called <code>HostedCompiler.exe.config</code>)</p>
@@ -125,23 +123,12 @@ <h2><a name="What-about-if-I-am-processing-a-script-or-using" class="anchor" hre
125
123
<li>
126
124
<p>If there is no static reference to FSharp.Core in the host assembly, then</p>
127
125
<ul>
128
-
<li>For FSharp.Compiler.Service 0.x series, a reference to FSharp.Core version 4.3.0.0 is added</li>
129
-
<li>For FSharp.Compiler.Service 1.3.1.x (F# 3.1 series), a reference to FSharp.Core version 4.3.1.0 is added</li>
130
-
<li>For FSharp.Compiler.Service 1.4.0.x (F# 4.0 series), a reference to FSharp.Core version 4.4.0.0 is added</li>
126
+
<li>For FSharp.Compiler.Service 1.4.0.x above (F# 4.0 series), a reference to FSharp.Core version 4.4.0.0 is added</li>
131
127
</ul>
132
128
</li>
133
129
</ol>
134
130
<h2><aname="Do-I-need-to-include-FSharp-Core-optdata-and-FSharp-Core-sigdata" class="anchor" href="#Do-I-need-to-include-FSharp-Core-optdata-and-FSharp-Core-sigdata">Do I need to include FSharp.Core.optdata and FSharp.Core.sigdata?</a></h2>
135
-
<p>If your compilation arguments explicitly reference an FSharp.Core.dll from an SDK location, then FSharp.Core.sigdata and FSharp.Core.optdata should be alongside the DLL
136
-
(if these files are not installed, then that's a bug in the F# SDK installation). If your compilation
137
-
arguments are always making an explicit reference, then you should <em>not</em> include FSharp.Core.optdata and FSharp.Core.sigdata as part of your application.</p>
138
-
<p>If you are relying on an implicit reference (e.g. for script processing, see above), this means your tool may reference the FSharp.Core.dll
139
-
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
140
-
found alongside FSharp.Core.dll. <strong>If you want to implicitly reference the FSharp.Core.dll you are including in your application,
141
-
then also add FSharp.Core.sigdata and FSharp.Core.optdata as two additional files to your application</strong>. When using <code>CompileToDynamicAssembly</code>, this problem
142
-
can also manifest itself as <ahref="https://github.com/fsharp/FSharp.Compiler.Service/issues/258">a stack overflow during assembly resolution</a>.</p>
143
-
<p>Tools that dynamically compile and execute code (e.g. a <code>HostedExecution.exe</code>) often make an implicit
144
-
reference to FSharp.Core.dll, which means they normally also include FSharp.Core.optdata and FSharp.Core.sigdata.</p>
131
+
<p>No, unless you are doing something with very old FSharp.Core.dll.</p>
0 commit comments