xsd2Code does not show on the right click Menu

Feb 2, 2010 at 11:11 PM

I have installed the add-in.  But I don't get the menu item when I right click on the xsd. Can anyone point me in the right direction?

Feb 5, 2010 at 8:00 PM

Please tell me which version of Visual Studio and Xsd2Code.

Feb 25, 2010 at 9:56 PM

Hi, I have the same problem.

I'm running on Windows 2008 (64bit though not R2) and Visual Studio 2008 (fully updated). Other add-ins I have installed are CodeRush (Express version) and .NET Reflector. I can see it in the Add-in manager, but it won't appear as an option when right-clicking on a XSD.

Not sure how to solve this.

Thanks in advance!

 

 

 

Aug 19, 2010 at 11:47 AM
Edited Aug 19, 2010 at 11:56 AM

me too, (just like atirado). I'm using VS 2008 SP1 (professional, German version) Windows 7 Prof. 64 bit. I have installed CodeRush Express too. The plug-in is shown in the Add-in manager, but the context menu entry is not available any more! The plug-in worked, after I installed it the first time! Recently I restarted my machine.. that's all. Repairing and/or uninstalling the plugin does not solve the problem. Also older/newer Version do not work at all. I think this is a very special bug.

Aug 20, 2010 at 8:04 PM

I'm using VS2010 Premium on Windows Vista 32-bit. No CodeRush Express. I've installed Xsd2Code 3.3 Beta 3. I see the entry in the Add-Ins, but no entry in the context menu for XSD files. The command line tool is there and works fine.

Aug 21, 2010 at 8:25 AM

Hi, can you go in C:\Users\[UserName]\Documents\Visual Studio 2010\Addins directory and tell me if you have xsd2code addin configuration file.

This file look like this :

<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<Extensibility xmlns="http://schemas.microsoft.com/AutomationExtensibility">
  <HostApplication>
    <Name>Microsoft Visual Studio</Name>
    <Version>9.0</Version>
  </HostApplication>
  <HostApplication>
    <Name>Microsoft Visual Studio</Name>
    <Version>10.0</Version>
  </HostApplication>
  <Addin>
    <FriendlyName>Xsd2Code</FriendlyName>
    <Description>Business Entity class Generator from XSD schema</Description>
    <AboutBoxDetails>For more information about , see the  website at\r\nhttp://www.codeplex.com/Xsd2Code\r\nCopyright (c) Pascal Cabanel 2009  Inc.</AboutBoxDetails>
    <AboutIconData>...</AboutIconData>
    <Assembly>C:\Program Files (x86)\Xsd2Code\Xsd2Code.Addin.dll</Assembly>
    <FullClassName>Xsd2Code.Addin.Connect</FullClassName>
    <LoadBehavior>1</LoadBehavior>
    <CommandPreload>0</CommandPreload>
    <CommandLineSafe>0</CommandLineSafe>
  </Addin>
</Extensibility>

Check if assembly path is valid.

 

Aug 23, 2010 at 8:01 PM

The assembly path is valid on my system.

Sep 27, 2010 at 11:10 PM

I would love to use this tool, but I am having the same problem. 

Visual Studio 2008 v9.0.30729.1 SP
I downloaded Xd2Code vs2008 Setup (3.2)

In the directory: C:\Users\[user]\Documents\Visual Studio 2008\Addins this file appeared after I ran the downloaded install file: Xsd2Code.Addin.Addin

This is the content of this file:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<Extensibility xmlns="http://schemas.microsoft.com/AutomationExtensibility">
  <HostApplication>
    <Name>Microsoft Visual Studio</Name>
    <Version>9.0</Version>
  </HostApplication>
  <HostApplication>
    <Name>Microsoft Visual Studio</Name>
    <Version>10.0</Version>
  </HostApplication>
  <Addin>
    <FriendlyName>Xsd2Code</FriendlyName>
    <Description>Business Entity class Generator from XSD schema</Description>
    <AboutBoxDetails>For more information about , see the  website at\r\nhttp://www.codeplex.com/Xsd2Code\r\nCopyright (c) Pascal Cabanel 2009  Inc.</AboutBoxDetails>
    <AboutIconData>...</AboutIconData>
    <Assembly>C:\Program Files (x86)\Xsd2Code\Xsd2Code.Addin.dll</Assembly>
    <FullClassName>Xsd2Code.Addin.Connect</FullClassName>
    <LoadBehavior>1</LoadBehavior>
    <CommandPreload>0</CommandPreload>
    <CommandLineSafe>0</CommandLineSafe>
  </Addin>
</Extensibility>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The assembly path (C:\Program Files (x86)\Xsd2Code\Xsd2Code.Addin.dll) is valid.

Within VS2008, I can go to: Tools > Add-In Manager, and I see Xsd2Code as an option.  There check box next to it is selected.  In the StartUp column, the checkbox is selected.  in the Command Line column, the check box is not selected.

VS was not open when I ran the install.

When installing, I selected "Everyone can use" and not just "this user".

But... when I right click on an XSD file, I do not see the option to generate code.

PLEASE HELP!!

Sep 28, 2010 at 9:04 PM

I really don't understand the problem with vs2008. I tried it on a VM machine running Windows XP SP2 with VS2008 installed and I had no problem to run the version 3.3 beta 3 !

If someone has a virtual machine I would like to download it to understand what is happening.

I need help to find this bug !

 

Sep 28, 2010 at 11:07 PM

"...running Windows XP..."

Maybe this is the problem?  I don't know many developers who use Visual Studio on XP.  My dev box is running Windows Server 2008 (service pack 2).  I can't offer you a virtual machine, but I'm happy to help in any way possible.

Thanks,

Casey

Oct 7, 2010 at 5:04 AM
Edited Oct 7, 2010 at 5:38 AM

Pascal, 

I am having a Vista 64 bit box with VS Team System Development System 08 and VS 10 Premium installed and have same problem using VS 08 but it works using VS 10. Have tried installing both 3.2 (3.0) and 3.3 to get it to work under 08 but the right click menu item in VS 08 never seems to show up as it does on same machine in VS 10. I have FYI both the ReSharper and StyleCop tool installed if that helps you in debugging the problem. It used to work perfectly in VS 08 when I last used it a while back. This was however before I installed VS 10.

Any help greatly appreciated as it would be nice if it works in both IDE's, so one does not have to copy the code forth and back to get it done!

Otherwise GREAT app.

Oct 14, 2010 at 2:51 PM

I am on VS 2008 with Xsd2Code 3.4 and having the same problem.  It shows up in Add-In manager but not right-click context.  I had also had this problem with older versions.  MSI reports successful code 0  install.

Below is my "About Microsoft Visual Studio Dialog":

Microsoft Visual Studio 2008Version 9.0.30729.1 SPMicrosoft .NET FrameworkVersion 3.5 SP1

Installed Edition: Enterprise
Microsoft Visual Basic 2008   91899-270-4176971-60395Microsoft Visual Basic 2008
Microsoft Visual C# 2008   91899-270-4176971-60395Microsoft Visual C# 2008
Microsoft Visual C++ 2008   91899-270-4176971-60395Microsoft Visual C++ 2008
Microsoft Visual Studio 2008 Team Explorer   91899-270-4176971-60395Microsoft Visual Studio 2008 Team ExplorerVersion 9.0.30729.1
Microsoft Visual Studio 2008 Tools for Office   91899-270-4176971-60395Microsoft Visual Studio 2008 Tools for Office
Microsoft Visual Studio Team System 2008 Architecture Edition   91899-270-4176971-60395Microsoft Visual Studio Team System 2008 Architecture Edition
Microsoft Visual Studio Team System 2008 Database Edition   91899-270-4176971-60395Microsoft Visual Studio Team System 2008 Database Edition
Microsoft Visual Studio Team System 2008 Database Edition GDR   91899-270-4176971-60395Microsoft Visual Studio Team System 2008 Database Edition GDR Version 9.1.40413.00
Microsoft Visual Studio Team System 2008 Development Edition   91899-270-4176971-60395Microsoft Visual Studio Team System 2008 Development Edition
Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V.  All rights reserved.
The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company.  Electronic version licensed from Lernout & Hauspie Speech Products N.V.  All rights reserved.

Microsoft Visual Studio Team System 2008 Test Edition   91899-270-4176971-60395Microsoft Visual Studio Team System 2008 Test Edition
Microsoft Visual Web Developer 2008   91899-270-4176971-60395Microsoft Visual Web Developer 2008
ActiveReports 6   6.0The first report writer for Microsoft .NET
AnkhSVN - Subversion Support for Visual Studio   2.1.8400.7AnkhSVN - Subversion Support for Visual Studio 2.1.8400.7  * Ankh.Package 2.1.8400.7 * Subversion 1.6.11 via SharpSvn 1.6011.1539.9366
SharpSvn is linked to: Apr 1.3.12, Apr-util 1.3.9, Neon 0.29.3, OpenSSL 1.0.0 29 Mar 2010, serf 0.3.1, SQLite 3.6.23, Subversion 1.6.11-SharpSvn-tag-1.6.11@936627, ZLib 1.2.4SharpSvn is dynamically linked to: Cyrus Sasl 2.1.23SharpSvn is optionally linked to: Berkeley DB 4.4.20, SharpPlink 1.6011.1539.9366
Crystal Reports    AAJ60-G0MSA4K-68000CFCrystal Reports Basic for Visual Studio 2008

Enterprise Library Configuration Editor   4.0Microsoft patterns & practices Enterprise Library Configuration Editor 
Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB946260)   KB946260This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946260.
Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB946458)   KB946458This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946458.
Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB948816)   KB948816This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/948816.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB944899)   KB944899This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/944899.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB945282)   KB945282This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/945282.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB946040)   KB946040This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946040.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB946308)   KB946308This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946308.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB946344)   KB946344This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946344.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB946581)   KB946581This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946581.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB946673)   KB946673This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946673.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB947171)   KB947171This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/947171.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB947173)   KB947173This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/947173.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB947180)   KB947180This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/947180.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB947540)   KB947540This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/947540.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB947789)   KB947789This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/947789.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB948127)   KB948127This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/948127.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB953256)   KB953256This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/953256.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB971091)   KB971091This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/971091.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB971092)   KB971092This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/971092.
Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB973674)   KB973674This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/973674.
JetBrains ReSharper 5.1   C# Edition build 5.1.1751.8 on 2010-08-31T14:34:58JetBrains ReSharper 5.1 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2010 JetBrains, Inc.
Microsoft StyleCop   4.3Provides source code style and consistency tools.
Microsoft Visual Studio Team System 2008 Team Suite - ENU Service Pack 1 (KB945140)   KB945140This service pack is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this service pack will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/945140.
Microsoft Visual Studio Team System 2008 Team Suite - ENU Service Pack 1 (KB947888)   KB947888This service pack is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this service pack will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/947888.
Microsoft Visual Studio Team System 2008 Team Suite - ENU Service Pack 1 (KB948484)   KB948484This service pack is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this service pack will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/948484.
Microsoft Visual Studio Team System 2008 Team Suite - ENU Service Pack 1 (KB948560)   KB948560This service pack is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this service pack will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/948560.
MySQL Connector/Net   6.3.2Data design and management tools for MySQL.  Copyright © 2007-2009 MySQL AB
PowerCommands for Visual Studio 2008   1.0A set of power commands for Visual Studio 2008
Process Editor WIT Designer   1.4.0.0Process Editor for Microsoft Visual Studio Team Foundation Server, Version 1.4.0.0
Security Update for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB972222)   KB972222This security update is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this security update will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/972222.
Security Update for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB973675)   KB973675This security update is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this security update will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/973675.
SQL Server Analysis Services   Microsoft SQL Server Analysis Services Designer Version 10.0.2531.0
SQL Server Integration Services   Microsoft SQL Server Integration Services DesignerVersion 10.0.2531.0 ((Katmai_PCU_Main).090329-1015 )
SQL Server Reporting Services   Microsoft SQL Server Reporting Services Designers Version 10.0.2531.0
Team Foundation Server Power Tools   October 2008Power Tools that extend the Team Foundation Server integration with Visual Studio.
Team Foundation Sidekicks   2.2Team Foundation Sidekicks utilities package
Update for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB956453)   KB956453This update is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this update will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/956453.
Update for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB967143)   KB967143This update is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this update will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/967143.
Update for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB972221)   KB972221This update is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this update will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/972221.
ANTS Memory Profiler 5 Add-inFor more information about ANTS Profiler 5, see the website athttp://www.red-gate.comCopyright (c) Red Gate Software Ltd 1999-2009
ANTS Profiler 5 Add-inFor more information about ANTS Profiler 5, see the website athttp://www.red-gate.comCopyright (c) Red Gate Software Ltd 1999-2009
Xsd2CodeFor more information about , see the  website athttp://www.codeplex.com/Xsd2CodeCopyright (c) Pascal Cabanel 2009  Inc.

Nov 4, 2010 at 9:26 AM

Hello everybody!

Yesterday I had the sane problem as you regarding the XSD2Code generation. The Option did not appear on my "right click menu" and it did not appera on my Add in manager as well.

I read this discussion forum and I tried all the options listed here with no success.

Then I had one simple idea: I followed all the steps that you showed here and as a last try I added mannually the add in through the menu Tools/Options/Environment ->"Add-in/Macros Security"/

button "Add" and then on the borwse dialog box I pointted to "C:/Program Files/Xsd2Code" folder.

I restarted Visual Studio and then it worked propperly.

Of course I don´t know if I had made this from the beggining, without copying the add in definition file to my documents folder ( or used any other options that you showed ) it would have worked as well, but some of you can check this possibility and come back to us with the information ;D

In time: I am using Visual Studio 2008.

 

 

Nov 8, 2010 at 5:24 AM

same problem vs 2010 version 3.4..

Tried all the above.. no right click menu?

Is there a set of manual instruct, or some test that can eb run?

 

Thanks

Ray

 

 

Nov 9, 2010 at 7:40 PM

Another datapoint.  I had the context menu in VS2008 Pro.  I installed VS2008 Team Suite and now the context menu is gone.  I reinstalled Xsd2Code with no success.  I see the Addin under the Tools menu but don't see it in the right-click context menu.

Nov 9, 2010 at 10:27 PM

Ok,

so looks like no help..

Can the source files  be updated ( all files dated 2009.. and many broken..zero length), and will see If I can find the bug myself.

Thanks

Ray..

Nov 14, 2010 at 11:07 PM

I am not sure whether my issue is related to this.
But the context menu doesn't appear under the Web Service project folder.

If schema files are anywhere else (i.e. Class library project), then I can see the context menu when right-clicking the schema (.xsd) file(s) in VS 2010.
However, I have shema files in the Web Service project folder. Then the context menu doesn't get shown.

The structure of the projects look like this:
- BusinessLogic project (class library), Other projects (class library), etc...
- Host project (web services where web.config and all .asmx files reside)
    under this project 'Schema' folder is created for all schema declared for the project, along with 'Resources' folder where actual .xml data is also residing within this project

If schema file is in one of Class Library project (above), right-click menu works fine. Only when the file is in Host project (Web services), there isn't any shown.

It seems that the menu is filetered based on the project type. Any ideas as to how I can work-around this problem?

Mar 18, 2011 at 1:42 PM

The solution proposed by SilCwb worked for me.  Vs 2010 Ultimate, Windows 7.  Thanks SilCwb!

Mar 27, 2011 at 12:35 AM

Hi, I posted a workaround here : http://xsd2code.codeplex.com/discussions/248964

Oct 10, 2012 at 6:35 AM

Hi all,

I have installed Xsd2Code 3.2.5.0 with VS2010 Premium on Windows7 Enterprise 64bit and the Xsd2Code generation entry appears in the context menu, when I select an xsd file. But in my case the entry is disabled (greyed out)?!

If I uninstall Xsd2Code the context menu entry still exists and is not grey out - but clickin on it, mentions that the corresponding Add-in is not installed.

Can anybody help me - Thanks!

Nov 13, 2012 at 12:12 PM

Hi All,

When installing Xsd2Code 3.2.5.0 for VS2010 I was selecting option on the installation wizard 'Everyone' for everyone to use add-in I didn't see then 'Run xsd2Code' on the right click menu.

When I re-installed the program with selected 'Just Me' it worked!

And also when you installing the program while VS is running restart VS after.

Thanks,

Paulina