XSDObjectGen.exe vs XSD.exe

前端 未结 4 1103
甜味超标
甜味超标 2020-12-01 08:21

Can anyone tell me what is the difference between XSDObjectGen.exe & XSD.exe?

Is there any way to make XSDObjectGen.exe work in dot net 2.0?

4条回答
  •  醉话见心
    2020-12-01 09:06

    Looks like you can use it with VS2005 at least (according to this article, anyway)

    Just add it to your External Tools collection of VS2005 under "Tools>>External Tools...".

    Set your parameters as the following

    • For VB: $(ItemPath) /l:vb /f:$(ItemFileName).vb /c /d /t
    • For C#: $(ItemPath) /l:cs /f:$(ItemFileName).vb /c /d /t

    It does appear that XSD and XSDObjectGen will yield different classes. In fact, comments in this Rick Strahl article say "they yield very different classes" in the article here.

提交回复
热议问题