how can we automatically update web references before build

How can we automatically update a project's web references before build  instead of manual process


Answer this question

how can we automatically update web references before build

  • Joe K

    You can go to the project properties and in the pre-build events add this line:

    wsdl.exe /language:<CS, VB or JS> /out:<the folder path in where your web references are hosted> http://<your ws server>/<your ws path>

    hope it helps,

    rgds,

    Rodrigo


  • dumian

    Hi,

    Thanks for reply. I want to know for dynamic build of project's how could it resolve.

    For example in this case .

    I have one web service project. I am consuming the web service from local current solution.

    if the web service provider is at different location,then there could be no problem. Actually VS 2005 attaches the project to dynamic port and stores the path of service provider. how could i ensure the project is successfully build .



  • 0to60

    this is exactly what i'd like to know.

    is there any way to do this

    if i use "devenv -rebuild" is there any way to tell visual studio to run ALL the custom tools on the code before compile

    many thanks,

    e.


  • how can we automatically update web references before build