积极答复者
如何写一个cmd文件,当服务端的契约信息发生变化时,只需执行写好的文件就可以自动生成客户端代理类文件

问题
答案
-
你可以将svcutil.exe等命令写在一个windows bat文件中,然后在.net中或cmd中将文件名或路径等参数传递过去。我记得我们在生成服务代理的时候,是自己开发了一个小的winForm可视化应用程序,在界面中你可以指定路径、文件名、命名空间、以及引用等,然后单击按钮就可以将生成的代理类与配置文件放置在应用程序目录下.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
- 已标记为答案 Peter pi - MSFTModerator 2012年5月22日 1:43
全部回复
-
你可以将svcutil.exe等命令写在一个windows bat文件中,然后在.net中或cmd中将文件名或路径等参数传递过去。我记得我们在生成服务代理的时候,是自己开发了一个小的winForm可视化应用程序,在界面中你可以指定路径、文件名、命名空间、以及引用等,然后单击按钮就可以将生成的代理类与配置文件放置在应用程序目录下.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
- 已标记为答案 Peter pi - MSFTModerator 2012年5月22日 1:43
-
你可以在google上查找how to pass parameters to batch file in windows,有很多方面的例子。
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework