我该如何自动更新在构建时Web引用?我该、自动更新、Web

由网友(柠檬不萌但很酸)分享简介:我有一个.NET项目,有一个网站引用服务。我想更新Web引用,因为每个构建的一部分。这可能吗?I have a .net project that has a web reference to a service. I would like to update that web reference as part...

我有一个.NET项目,有一个网站引用服务。我想更新Web引用,因为每个构建的一部分。这可能吗?

I have a .net project that has a web reference to a service. I would like to update that web reference as part of every build. Is that possible?

推荐答案

您可以使用的MSBuild脚本调用的 Wsdl.exe用

You can use MSBuild script with a task that calls wsdl.exe

  <Target Name="UpdateWebReference">
    <Message Text="Updating Web Reference..."/>
    <Exec Command="wsdl.exe /o &quot;$(OutDir)&quot; /n &quot;$(WebServiceNamespace)&quot; &quot$(PathToWebServiceURL)&quot;"/>
  </Target>
阅读全文

相关推荐

最新文章