Results 1 to 3 of 3

Thread: How to add web reference for command line compilation ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    India
    Posts
    22

    Unhappy How to add web reference for command line compilation ?

    Dear All,

    I want to compile c# code command line, if my code has reference of any assemblies, i can give it /reference paramater in compiler option. If my code has any web reference (web service), then how to refer and use it in compiler option..? Any idea..?

    Help Me. Many thanx in advace.


    Rafik



  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    A proxy class has to be created first.

    Use the command line app wsdl.exe

    I am not sure on the parameters but it wouls be something like

    wsdl http://bleck/myservice.asmx

    then you just add a reference '/r:' to the assembly it creates as normal.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    oh I think the proxy class is not compiled when made so you may have to compile that first to the dll..then compile your app..
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width