Fake on Mono

2 views
Skip to first unread message

Ari

unread,
May 23, 2014, 11:25:55 AM5/23/14
to fshar...@googlegroups.com
Hi,

I've recently started learning/using f# using windows .net via Visual Studio. However, I'd like to develop & deploy some on linux with mono. To that end I was planning on using fake to build/deploy apps. But most of the examples I've read using msbuild, while I believe I can use xbuild in its place does anyone know of fake examples that do not use msbuild/xbuild? In other words use the f# compiler only? Thanks.

-Ari

Steffen Forkmann

unread,
May 23, 2014, 12:41:22 PM5/23/14
to fshar...@googlegroups.com

Hi,

 

Xbuilding fsproj files should work out of the box.

 

What’s your concrete problem?

--
Sie erhalten diese Nachricht, weil Sie in Google Groups E-Mails von der Gruppe "FAKE - F# Make" abonniert haben.
Wenn Sie sich von dieser Gruppe abmelden und keine E-Mails mehr von dieser Gruppe erhalten möchten, senden Sie eine E-Mail an fsharpMake+...@googlegroups.com.
Weitere Optionen finden Sie unter https://groups.google.com/d/optout.

Ari

unread,
May 27, 2014, 1:33:19 PM5/27/14
to fshar...@googlegroups.com
Hi,

Sorry for the delayed; didn't receive a notice of reply.

The specific warnings and errors I'm facing are:

Warnings:

/home/ari/Documents/EmmaScraper/MuniScraper.fsproj (default targets) ->
/usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets (ResolveAssemblyReferences target) ->

    /usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets:  warning : Reference 'FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' not resolved

Errors:

/home/ari/Documents/EmmaScraper/MuniScraper.fsproj (default targets) ->
/usr/lib/mono/4.0/Microsoft.FSharp.Targets (CoreCompile target) ->

    : error : Error initializing task Fsc: Not registered task Fsc.

     1 Warning(s)
     1 Error(s)

I've pasted the project file here: http://pastebin.com/GRMSmfnk

Thanks.

-Ari

Steffen Forkmann

unread,
May 28, 2014, 3:31:01 AM5/28/14
to fshar...@googlegroups.com

Hi,

 

this is a general issue with F# support on mono and not specific to FAKE.

Please try to diff your fsproj with https://github.com/fsharp/FAKE/blob/master/src/app/FakeLib/FakeLib.fsproj

 

The FakeLib.fsproj is working on mono and I take it as a sample when I try to make my projects mono compatible.

 

You could also try to use https://github.com/fsprojects/FSharp.ProjectScaffold

 

Cheers,

Steffen

--

Ari

unread,
May 30, 2014, 12:42:21 PM5/30/14
to fshar...@googlegroups.com
Hi,

Thanks for the suggestions.

Using XBuild Engine Version 12.0 and Mono Version 3.2.8.0, I was able to compile using xbuild once I changed the "ToolsVersion" to "4.0" and removed the "Choose" tag from the fsproj file.

Best,
Ari
Reply all
Reply to author
Forward
0 new messages