LINQ to XSD

Audience

Everyone

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 PreviewBin</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:   

Create a conversation around this article

Share on Facebook
Share on Twitter
Share on Linkdin

Read more

Martin Hinshelwood
In organizational development and team dynamics, Agile (as the Agile Manifesto delineates) and Scrum (as the Scrum Guide outlines) guide teams not by solving their problems but by illuminating the issues that demand attention. These frameworks aim to identify and spotlight the challenges within a team or organization’s processes, effectively …
Martin Hinshelwood
This week, I participated in a Scrum.org Webinar hosted by Sabrina Love (Scrum.org Product Owner) as well as my colleagues, Joanna Płaskonka, Ph.D. and Alex Ballarin to discuss the state of learning and how immersive learning is the future of training. You can watch the video below to hear what …
Martin Hinshelwood
For a long time now I have been searching for that perfect domain that epitomised the vision, the why, of what I am trying to achieve with my customers and the industry at large. Now I have found it in http://nkdagility.com
Martin Hinshelwood
At the MVP Summit I was appalled by the number of people who asked questions about new features for supporting hierarchical tasks! I shared a disgusted look with Peter Provost and we had a quick (and I mean really quick) conversation that resulted in this post. it really comes down …