F# and XSD.EXE


It appears I missed a cool feature in F# PowerPack – F# CodeCOM. Quoting from the CodePlex page:

F# CodeDOM Implementation
FSharp.Compiler.CodeDom.dll contains implementations of System.CodeDom.Compiler.CodeDomProvider for F#. This allows F# to be used with CodeDom consumers, and most importantly to author ASP.NET pages code-behind classes in F#. Not all ASP.NET features work with this CodeDom, and you don’t get strongly typed access to page elements, Some sample ASP.NET applications are in the test suite in the source tree.

Which, thanks to Luke over on the F# Visual Studio team, means I can do this:

xsd.exe fpml-asset-4-2.xsd /classes /l:”Microsoft.FSharp.Compiler.CodeDom.FSharpCodeProvider, FSharp.Compiler.CodeDom, Version=1.9.9.9, Culture=neutral, PublicKeyToken=a19089b1c74d0809″

Which now means I can stop hand crafting FpML types in my F# cashflow code :)

About these ads

~ by mdavey on March 26, 2010.

2 Responses to “F# and XSD.EXE”

  1. svcutil.exe also supports the same /language parameter as xsd.exe, for generating your WCF stubs.

  2. [...] Ade Miller’s NBody.net F# Integrators Code Available [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 658 other followers

%d bloggers like this: