XSD.EXE输出文件名 [英] xsd.exe output filename

查看:222
本文介绍了XSD.EXE输出文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法来控制从XSD.EXE输出文件名?

Is there a way to control the output filename from xsd.exe?

我的具体问题是,如果进口的xsd引用这被添加到文件名。

My specific issue is that if an imported xsd is referenced this is added to the filename.

推荐答案

<一个href="http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/8ab41df8-69d4-44e4-8795-436088f230e2">This链接提出另一种选择......在指定输入模式将重置生成的文件名使用的路径字符。所以,如果你使用下面,你将能够控制自己的输出文件名。

This link suggests another alternative ... using a path character in specifying the input schemas resets the generated file name. So if you use the following you will be able to control your output file name.

xsd.exe schema1.xsd schema2.xsd .\schema3.xsd

将迫使 XSD.EXE 生成 schema3.cs 文件。

注意:这是一个黑客,但到现在为止(VS 2010),它的工作原理

Note: It's a hack but up to now (VS 2010) it works.

这篇关于XSD.EXE输出文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆