添加e-conomic服务引用后,编译持续时间大幅增加 [英] compile duration increased massively after adding e-conomic service reference

查看:63
本文介绍了添加e-conomic服务引用后,编译持续时间大幅增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我添加了一个e-conomic服务参考。但是,这意味着每次编译时都会使用我的项目下载和编译服务引用。



这需要很长时间,有时长达一分钟,编译一个相对较小的项目。



这是网络服务:https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?wsdl



正如您所看到的,Web服务非常庞大,这就是为什么每次需要编译时都需要这么长时间。有没有办法确保我的项目编译,而不必一遍又一遍地重新编译Web服务?



它变得非常令人沮丧。



我已经用这个Web服务编写了相当多的代码(每次我需要编译时都会哭!),所以如果我不需要改变它就会很棒。

Recently I've added a service reference to e-conomic. However, this meant that the service reference is downloaded and compiled with my project every time I compile.

That takes a long long time, sometimes up to a minute, just to compile a relatively small project.

This is the web service: https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?wsdl

As you can see, the web service is quite massive, and that is why it takes so long every time I need to compile. Is there any way to make sure my project compiles, without having to recompile the web service over and over again?

It's growing quite frustrating.

I've already written quite a bit of code with this web service (Crying every time I needed to compile!), so it would be awesome if I didn't have to change that.

推荐答案

您可以将MSBuild脚本与调用 wsdl.exe

You can use MSBuild script with a task that calls wsdl.exe
<target name=""UpdateWebReference"><br" mode="hold" />    <Message Text="Updating Web Reference..."/>
    <Exec Command="wsdl.exe /o '


(OutDir)'/ n'
(OutDir)' /n '


(WebServiceNamespace)''
(WebServiceNamespace)' '


这篇关于添加e-conomic服务引用后,编译持续时间大幅增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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