tag:support.appharbor.com,2010-11-23:/discussions/problems/95177-broken-build-for-f-projectsAppHarbor: Discussion 2018-03-22T06:24:40Ztag:support.appharbor.com,2010-11-23:Comment/449180942018-03-16T12:06:06Z2018-03-19T13:14:47ZBroken Build for F# projects<div><p>Hello, since last 3 days all the builds are broken for F#. I was trying to find the problem in local codebase earlier until tried building previous successful built and it failed.</p>
<pre>
<code>Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Compiler.Private, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
at Microsoft.FSharp.Compiler.CommandLineMain.main(String[] argv)
5>C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\Microsoft.FSharp.Targets(263,9): error MSB6006: "fsc.exe" exited with code -532462766. [path_to_fsproj]</code>
</pre></div>abhiranjantag:support.appharbor.com,2010-11-23:Comment/449180942018-03-19T13:17:37Z2018-03-19T13:17:37ZBroken Build for F# projects<div><p>@rune, please check. It's blocking our deployment.</p></div>abhiranjantag:support.appharbor.com,2010-11-23:Comment/449180942018-03-19T23:31:46Z2018-03-19T23:31:46ZBroken Build for F# projects<div><p>Hi,</p>
<p>That's curious -- the SDK path should be correctly configured on the build servers, so I wonder if the SDK installation directory / <code>fsc.exe</code> path is somehow hardcoded in your project files (e.g. not using macros)? It's hard to tell since I don't know what application you're experiencing this issue, but feel free to follow up and let me know the app name.</p>
<p>On a related note: The build tools and servers were updated last week and it's likely related to that. They've just been updated again today to include the most recent bug fixes. I didn't see anything specifically related to F# as part of that update, but try and push again to see if it's been fixed! I did notice that the error message included above is referencing the targets path under <code>C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\Microsoft.FSharp.Targets</code>, but it might be better to use <code>C:\Program Files (x86)\Microsoft SDKs\F#\10.1\Framework\v4.0\Microsoft.FSharp.Targets</code> - at least that folder includes the missing dependency, <code>FSharp.Compiler.Private</code>.</p>
<p>In any case I'd highly recommend you use the F# package for tooling. It should include all the tools necessary, and will make the build process less error prone going forward by reducing the number of potential discrepancies between environments. You can find and install <a href="https://www.nuget.org/packages/FSharp.Compiler.Tools/">the relevant package right here</a>.</p>
<p>I hope this helps - would be great if you could give me a heads up if installing the tooling package helps!</p>
<p>Best,<br>
Rune</p></div>runetag:support.appharbor.com,2010-11-23:Comment/449180942018-03-20T05:34:27Z2018-03-20T05:34:27ZBroken Build for F# projects<div><p>Agreed. F# tooling package is the right way given how unpredictable MS has been these days.</p>
<p>Moved to this. Thanks.</p></div>abhiranjantag:support.appharbor.com,2010-11-23:Comment/449180942018-03-22T06:24:36Z2018-03-22T06:24:36ZBroken Build for F# projects<div><p>Ok great, thanks for the heads up and yes I agree this is a better solution!</p>
<p>Best,<br>
Rune</p></div>rune