Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Use xbuild by default in F# for MonoDevelop #34

Closed
funnelweb opened this issue Oct 23, 2012 · 10 comments
Closed

Use xbuild by default in F# for MonoDevelop #34

funnelweb opened this issue Oct 23, 2012 · 10 comments

Comments

@funnelweb
Copy link
Contributor

Not sure of the status of xbuild support, supposedly it is much improved in Mono 3.0.

We need to see if it is ok and if we should use it instead of all the current hacking we do.

@migueldeicaza
Copy link
Contributor

I thought that the Xbuild support was handled by the F# addin?

@alanmcgovern
Copy link
Contributor

What issue are you having with xbuild support? It's the sole build engine for our Android product for more than a year now.

@funnelweb
Copy link
Contributor Author

  • fsc.exe was not being installed in lib/mono/4.5. I think this was my mistake
  • The Microsoft.FSharp.targets has had some issues to do with resource files. Some fixes in fsharp/fsharp@369f7bd

I'm going to be compiling more projects using xbuild later today. For example I'll try to bootstrap the F# compiler using xbuild.

-- ben

@funnelweb
Copy link
Contributor Author

Yes, you're right, it's using it as the default if you enable xbuild. All looks good now, I'm compiling F# projects happily using xbuild after latest F# fixes - tag 3.0.6 in https://github.com/fsharp/fsharp

@alanmcgovern
Copy link
Contributor

My point was that you can force f# projects to always build with xbuild regardless of the IDE setting. This is probably what you want to do.

@funnelweb
Copy link
Contributor Author

Sounds right. Any idea how we do that? Now the fsharpbinding implements IDotNetLanguageBinding and overrides Compile with some logic which cracks the project file etc. on its own

https://github.com/fsharp/fsharpbinding/blob/master/MonoDevelop.FSharpBinding/FSharpLanguageBinding.fs

Do we replace this by an invocation of xbuild? If so, do you know where there some sample code for that?

-- ben

p.s. another one problem we have is that FSharp.Core is showing up as undefined in MonoDevelop's solution pad (though xbuild finds it on a build). If you know anything about that would be grateful for pointers #30

@alanmcgovern
Copy link
Contributor

@mhutch, What's the correct way to opt all F# projects in to using XBuild by default?

@mhutch
Copy link

mhutch commented Oct 24, 2012

useXBuild="true" on the DotNetProjectSubtype where the targets are registered

@alanmcgovern
Copy link
Contributor

They use a DotNetProject, not a DotNetProjectSubtype

@funnelweb
Copy link
Contributor Author

We can change if you think it is the right thing to do to move things
forward

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants