Visual Studio - update project service reference using command line

I am working in a C # project with web services and I need to update the service reference for each environment in the company, I am currently opening the project in Visual Studio, right click on the service reference, update it and create a published site, there is Is there a way to make this process faster, for example using the command line, so I can update the service link and publish the site without going into Visual Studio? I would appreciate your help, thanks!

+3


source to share


2 answers


You say you are using web service links. Then you can update them using wsdl.exe . If you already have automatic builds configured for your environment, then you will need to add a new task that updates them every time it is created.



If you are using MSBuild have a look at this answer , it might be the solution for you. Of course, this needs to be changed in every environment that needs to be updated, but if you do, you should be safe for contract changes in the future.

0


source


The command line utility for updating service references is svcutil.exe There is a discussion of what you are trying to accomplish here and the svcutil documentation is here



0


source







All Articles