tag:support.appharbor.com,2010-11-23:/discussions/problems/60851-fsharp-core-library-could-not-be-loadedAppHarbor: Discussion 2016-08-11T00:43:33Ztag:support.appharbor.com,2010-11-23:Comment/338423422014-07-21T07:25:19Z2014-07-21T07:25:19ZFSharp Core library could not be loaded<div><p>Hi,</p>
<p>Sometimes this can happen when the assembly isn't required
during the build, so the compile is OK, but the required assembly
is missing at runtime. You might want to try and set the <code>Copy
Always</code> attribute to <code>true</code> to ensure that's it's
copied as pat of the build process.</p>
<p>Also make sure that you're referencing the right dll (i.e.
likely the one in your packages folder instead of the GAC) and that
the NuGet package is being restored properly.</p>
<p>You can always download the builds to verify that the build
output is like you'd expect - there's a link for it on the build
log page.</p>
<p>Let me know if you're still having trouble getting this up and
running.</p>
<p>Best,<br>
Rune</p></div>runetag:support.appharbor.com,2010-11-23:Comment/338423422014-07-21T08:20:57Z2014-07-21T08:20:57ZFSharp Core library could not be loaded<div><p>Hi,<br>
I enabled NuGet package restore and still got the same error as
above. It runs fine locally.</p></div>EvilGeniusTechnologiestag:support.appharbor.com,2010-11-23:Comment/338423422014-07-21T08:51:33Z2014-07-21T08:51:33ZFSharp Core library could not be loaded<div><p>Alright, have you tried the couple of other things I suggested
(download the build and set the <code>Copy Always</code> attribute
if the file isn't there)?</p>
<p>It's likely that it works locally and not on AppHarbor, if
you're referencing assemblies in the GAC, or if your local folder
contain files that are not included in your repository. The latter
can usually be isolated by cleaning your repository folder, or
checking the repository out to a different folder.</p>
<p>Best,<br>
Rune</p></div>rune