The F# project system does not support SFG/custom tools. Since F# does not ship with a CodeDom or ways to generate code, this feature was a low priority and not implemented.

Visual Studio can display Xamls in F# projects (there are a number of recent blogs about using the two together), am curious to know what issues you're seeing.

I imagine you can work around the lack of SFG support just by adding the .g.fs file to the project and adding a menu item to the .xaml to regenerate it (I don't know all the mechanics of SFGs, but doesn't appear to be too deep).

Alternatively, you can define other build logic to avoid the need for SFGs, this is what e.g. the PowerPack FsLex/FsYacc tools do (they define msbuild tasks/targets, and then you just say e.g. "<FsLex Include="foo.fsl" />" and it runs the generator and includes the generated .fs as part of the build step. This also has the advantage (I think) of being completely msbuild-based, which means it works fine even if you're not using VS (I don't think SFGs support that?).

By on 6/14/2010 8:30 AM ()

Thanks Brian, I expected you to answer :). I'll create some build targets then and be on my merry way. Are you guys going to provide SFG/custom tools at some point?

Thanks,

-Patrick

By on 6/14/2010 10:18 AM ()

Are you guys going to provide SFG/custom tools at some point?

Probably, but the future is still unclear, and presumably the next release of VS is a couple years out at least, so it would be a while.

By on 6/14/2010 10:47 AM ()

I'm hoping for a service pack before then :)

By on 6/15/2010 11:20 AM ()

Service packs are more likely to contain 'bug fixes' rather than 'new features', so I wouldn't bet on that for this particular case :)

By on 6/15/2010 11:31 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper