Click here to Skip to main content
15,919,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:

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.

Pasted from SO:

You can create a dedicated assembly to host the service proxy. Then reference this assembly in your main project(s). Finally tweak you MSBuild to not compile automatically the service project - assuming it's part of the same solution - and voila!

If an update should be made simply recompile the project manually.
Share this answer
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 '$(WebServiceNamespace)' '$(PathToWebServiceURL)'">
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900