Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Invoke xsd.exe thru code

Invoke xsd.exe thru code

Scheduled Pinned Locked Moved C#
csharpvisual-studiotutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nikanth
    wrote on last edited by
    #1

    Hi.. How to invoke the xsd.exe thru code?.. And also How do u i know the location in which the visual studio is installed. Thanks in advance.

    N.Navaneethan

    K 1 Reply Last reply
    0
    • N nikanth

      Hi.. How to invoke the xsd.exe thru code?.. And also How do u i know the location in which the visual studio is installed. Thanks in advance.

      N.Navaneethan

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      You should be able to use the Process.Start to call it. Looking at the shortcut from the .net command prompt that knows about the xsd.exe program It has this for .net 2.0: %comspec% /k ""C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"" x86 and this for .net 1.1: %comspec% /k "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat" So if you call that then you could call the xsd.exe with what ever parameters. Hope that helps. Ben

      N 1 Reply Last reply
      0
      • K kubben

        You should be able to use the Process.Start to call it. Looking at the shortcut from the .net command prompt that knows about the xsd.exe program It has this for .net 2.0: %comspec% /k ""C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"" x86 and this for .net 1.1: %comspec% /k "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat" So if you call that then you could call the xsd.exe with what ever parameters. Hope that helps. Ben

        N Offline
        N Offline
        nikanth
        wrote on last edited by
        #3

        Hi,... The installation path need not be c:\... How do i find the installation path if it is in some other location?

        N.Navaneethan

        K 1 Reply Last reply
        0
        • N nikanth

          Hi,... The installation path need not be c:\... How do i find the installation path if it is in some other location?

          N.Navaneethan

          K Offline
          K Offline
          kubben
          wrote on last edited by
          #4

          You just need to start the command shell with those commands. After the command shell is started you can change to any mapped drive you want. The important thing about starting the command shell this way is that the command shell knows what xsd.exe is which is important. Hope that helps. Ben

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups