如何从 VS 2008 命令行更新 Web 参考? [英] How update web reference from VS 2008 command line?

查看:34
本文介绍了如何从 VS 2008 命令行更新 Web 参考?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的 VS 2008 解决方案中有 Web 参考.我们不签入生成的文件.我需要更新巡航控制服务器上生成的文件——所以我需要一个命令行方法来更新网络引用.有没有办法强制 devenv 这样做?

We have web references in our VS 2008 solution. We don't check in generated files. I need to update the generated files on our cruise control server -- so I need a command line method to update the web references. Is there a way to force devenv to do this?

推荐答案

没有任何命令可以从命令行传递到 Visual Studio 来执行此操作.您可以做的是使用 wsdl.exe 工具自己生成网络引用.在幕后,Visual Studio 使用与 wsdl.exe 相同的 API 来生成引用,因此生成的两段代码之间不应存在功能差异(前提是您为 wsdl 提供了正确的参数)

There is no command you can pass to Visual Studio from the command line to do this. What you can do though is use the wsdl.exe tool to generate the web references yourself. Under the hood, Visual Studio uses the same API as wsdl.exe to generate the references so there shouldn't be a functional difference between the two pieces of generated code (provided you give wsdl the right parameters)

WSDL.exe

这篇关于如何从 VS 2008 命令行更新 Web 参考?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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