简体   繁体   English

xsd.exe在多个类文件中生成相同的枚举值

[英]xsd.exe generating the same enum values in multiple class files

We do have more than one xsd, currently two teams are working on two different xsd along with one common xsd. 我们确实有多个xsd,目前有两个团队正在开发两个不同的xsd以及一个通用的xsd。 If we generate separate class file for each xsd then the common xsd object types are duplicated. 如果我们为每个xsd生成单独的类文件,则通用的xsd对象类型将被复制。 If we use all xsd in one command line it generate into one class file. 如果我们在一个命令行中使用所有xsd,它将生成为一个类文件。 We want separate class file for each xsd so that each team can manage separately and the future changes also can be tracked which team made the change. 我们希望为每个xsd使用单独的类文件,以便每个团队可以分别进行管理,并且还可以跟踪将来的更改,即哪个团队进行了更改。

Is it possible to create each class file for each xsd passed in the xsd.exe command line when multiple xsd's are passed? 传递多个xsd时,是否可以为xsd.exe命令行中传递的每个xsd创建每个类文件?

Thanks, 谢谢,

Zahir 扎希尔

No, sorry, that's not possible. 不,对不起,那是不可能的。

Remember that the generated class file is an output . 请记住,生成的类文件是输出。 I don't know what sort of management that would require. 我不知道需要什么样的管理。 It is the XSD files which are the input to the process, and which should be managed. XSD文件是流程的输入,应该对其进行管理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM