Using Xsd2CodeCustomTool with Express editions

Feb 19, 2009 at 9:26 PM
Hi !
First of all thanks a lot for this great VS AddIn, which was really needed !
I've used both xsd.exe and LinqToXsd but wished I had more control over the generated code. And even with LinqToXsd, I've had some troubles in terms of VS integration: XSD and generated classes were not always in sync...
With Xsd2Code I finally get good control over the generated code and a perfect VS integration through Xsd2CodeCustomTool.

What is also great about Xsd2CodeCustomTool is that it allows us to use your tool with Express editions of Visual Studio 2008 as well.
Still to get it to work with VS Express I have to add the following registry keys:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VCSExpress\9.0\CLSID\{9E6FCB59-E3EF-4bbe-966C-30AC92A44DF6}]
"InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
"Assembly"="Xsd2Code.CustomTool, Version=1.0.0.0, Culture=neutral, PublicKeyToken=04032056d5f54f80"
"ThreadingModel"="Both"
"Class"="Xsd2Code.CustomTool.Xsd2CodeCustomTool"
"(Default)"="Xsd2CodeCustomTool"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VCSExpress\9.0\Generators\{FAE04EC1-301F-11D3-BF4B-00C04F79EFBC}\Xsd2CodeCustomTool]
"CLSID"="{9E6FCB59-E3EF-4bbe-966C-30AC92A44DF6}"
"GeneratesDesignTimeSource"=dword:00000001
"(Default)"="Xsd2CodeCustomTool"
 
Could it be possible to modify Xsd2Code's setup so as to include those keys and enable the custom tool to work from Express editions?

In this configuration (VS Express + Xsd2CodeCustomTool) I am currently parameterizing the generated code by tweaking the fourth line of the *.Designer.cs file. Is it the correct way to go?

Many thanks in advance!

Jan 17, 2011 at 9:49 AM

up