xml 在 windows 8 上的 Visual Studio 2013 中,在哪里可以找到 xsd.exe

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22975031/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-06 12:01:27  来源:igfitidea点击:

where to find xsd.exe in visual studio 2013 on windows 8

xmlvisual-studiovisual-studio-2013schemaxsd.exe

提问by user3010967

I have used the xsd.exe utility in Visual Studio 2003and 2008to generate typed datasets from a 3rd party XSD file. The third party has changed their schema so I need to regenerate the datasets but I can't find XSD.EXE.

我在3rd 方 XSD 文件中使用了 xsd.exe 实用程序Visual Studio 20032008生成了类型化数据集。第三方已经更改了他们的架构,因此我需要重新生成数据集,但我找不到XSD.EXE.

The win8 search gives me information about the utility but not where it is, I tried a search in Windows explorer and didn't get any results.

win8 搜索为我提供了有关该实用程序的信息,但没有提供它在哪里,我尝试在 Windows 资源管理器中进行搜索,但没有得到任何结果。

I read posts regarding Win7/VS 2008that say it is part of the WinSDK but I can't find it in that folder either.

我读过关于Win7/VS 2008它的帖子说它是 WinSDK 的一部分,但我也无法在该文件夹中找到它。

Some poster say it now needs to be downloaded but from where. I am running 64 bit Windows 8 proand Visual Studio 2013 Ultimate.

一些海报说它现在需要下载,但从哪里下载。我正在跑步64 bit Windows 8 proVisual Studio 2013 Ultimate

回答by StuartLC

Once you have the SDK installed *(either Manually, or with Visual Studio), you'll find it in the following directories:

一旦您安装了SDK *(手动或使用 Visual Studio),您将在以下目录中找到它:

SDK 8 and later

SDK 8 及更高版本

There is an an additional FX version subdirectory:

还有一个额外的 FX 版本子目录:

%programfiles(x86)%\Microsoft SDKs\Windows\{ver}\bin\{FXVer} Tools

Where

在哪里

  • {ver}is the SDK version (e.g. v8.1A)
  • and {FXVer}is the applicable .Net Framework version, e.g. NETFX 4.0v
  • {ver}是 SDK 版本(例如v8.1A
  • 并且{FXVer}是适用的 .Net Framework 版本,例如NETFX 4.0v

e.g.

例如

C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools 

SDK 7 and lower

SDK 7 及更低版本

%programfiles(x86)%\Microsoft SDKs\Windows\{ver}\Bin\

Where {ver}is the SDK version (e.g. v7.0A)

{ver}SDK版本在哪里(例如v7.0A

On a 32 bit O/S, replace %programfiles(x86)%with %programfiles%

32 位 O/S 上,替换%programfiles(x86)%%programfiles%

*Wikipedia maintains a fairly recent set of download links to the various SDK versions - scroll to the bottom of the table for recent ones.

*维基百科维护着一组最新的各种 SDK 版本的下载链接 - 滚动到表格底部以获取最新版本。

回答by HeXanon

This is part of the Windows SDK. I know that you can download the Windows 7 SDK for .NET 4.0 and the files will be installed and will be fully functional on Windows 8. (It is installed in C:\Program Files (x86)\Microsoft SDKs\Windows\?version?\bin\NETFX 4.0 Tools where version will be OS version like v8 or similar)

这是 Windows SDK 的一部分。我知道您可以下载适用于 .NET 4.0 的 Windows 7 SDK,这些文件将被安装并在 Windows 8 上完全发挥作用。(它安装在 C:\Program Files (x86)\Microsoft SDKs\Windows\?version ?\bin\NETFX 4.0 工具,其中版本将是操作系统版本,如 v8 或类似版本)

http://www.microsoft.com/en-us/download/details.aspx?id=8279

You may also find the xsd application as part of the full SDK.

您还可以找到 xsd 应用程序作为完整 SDK 的一部分。

For Windows 8: http://msdn.microsoft.com/en-us/windows/desktop/hh852363.aspx
For Windows 8.1: http://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx

Also if you are so inclined to use other works, at Codeplex there is a nice alternative to xsd.exe: http://xsd2code.codeplex.com/

此外,如果您非常喜欢使用其他作品,那么 Codeplex 有一个很好的替代 xsd.exe 的方法:http://xsd2code.codeplex.com/

回答by Ivan P.

If you have Visual Studio installed, then you may locate Developer Command Prompt (it is a shortcut in Start menu, or it should be available from VS IDE). A cmd window opens and you are able to run xsd.exe from it.

如果你安装了 Visual Studio,那么你可以找到 Developer Command Prompt(它是开始菜单中的快捷方式,或者它应该可以从 VS IDE 中获得)。一个 cmd 窗口将打开,您可以从中运行 xsd.exe。

回答by Nick N.

Add the following to your environment variable PATH:

将以下内容添加到您的环境变量中PATH

C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools

C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 工具

  • Go to C:\Program Files (x86)\Microsoft SDKs\Windows\
  • Click latest version (e.g. v10.0A)
  • Click Bin
  • Select latest .NET Version e.g. NETFX 4.7.2 Tools
  • There is xsd.exe
  • C:\Program Files (x86)\Microsoft SDKs\Windows\
  • 单击最新版本(例如v10.0A
  • 点击 Bin
  • 选择最新的 .NET 版本,例如 NETFX 4.7.2 Tools
  • xsd.exe

Run via command line using xsd /c filename.xsd

通过命令行运行使用 xsd /c filename.xsd

回答by knb

Someone has posted a zip file with xsd.exe (from 2011) and xsd.exe.config on his personal web site:

有人在他的个人网站上发布了一个带有 xsd.exe(从 2011 年开始)和 xsd.exe.config 的 zip 文件:

(https://juliankay.com/development/download-xsd-exe/).

https://juliankay.com/development/download-xsd-exe/)。

Download of the zipfileworked for me in 03/2017 .

下载zipfile于 03/2017 对我有用。

Output (on Linux, with Mono Support built into the kernel):

输出(在 Linux 上,内核内置 Mono 支持):

/home/knut/bin/xsd.exe /?
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 2.0.50727.3038]
Copyright (C) Microsoft Corporation. All rights reserved.

xsd.exe -
    Utility to generate schema or class files from given source.