Martin Hinshelwood's Blog

A Scottish dyslexic software developer: Team System MVP, .NET architect, developer, evangelist, technology enthusiast and multi-dimensional free thinker


News

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.


Subscribe

Personal

Get Microsoft Silverlight

Accreditation

Stats

My Stats

  • Posts - 313
  • Comments - 367
  • Trackbacks - 67

Twitter












Tag Cloud


Recent Comments


Recent Posts


Article Categories


Archives


Post Categories


Image Galleries


Blogs I read


Blogs of Friends


Blogs on VSTS


Multi-Dimentional Free Thinking Bloggers


Personal


Projects



Absolutely brilliant. That's what I think of Linq to XSD. Disappointed that is only works in C#, but having to use C# for a single project out of a solution it is a small price to pay to get the functionality.

If you install the LINQ to XSD Preview Alpha 0.2 Refresh you get a couple of extra project definitions:

image

If you create one of these it will have the features enabled. You can add the features to an existing project by editing the project definition file to add a property group:

   1: <PropertyGroup>
   2:   <TXLINQBinDir Condition="'$(TXLINQBinDir)' == ''">$(ProgramFiles)\LINQ to XSD Preview\Bin</TXLINQBinDir>
   3: </PropertyGroup>

And an import reference:

   1: <Import Project="$(TXLINQBinDir)\LinqToXsd.targets" />

note: if you are using MSBuild or Team Build you will need to install this add on there as well....

Now that you have a project, when you add an XSD you will have extra Build Actions available. Once you have set all of your XSD files to this Action and build, you will have classes for all of your XSD's. On down side is that it created a single file ("/obj/debug/LinqToXsdSource.cs"), bit it does work.

Technorati Tags: ,,

posted @ Thursday, August 28, 2008 2:48 PM | Filed Under [ Microsoft .NET Framework ]

Comments

No comments posted yet.
Post a comment





 

Please add 8 and 8 and type the answer here: