PDA

Click to See Complete Forum and Search --> : How to add web reference for command line compilation ?


mdrafik
Mar 26th, 2002, 06:48 AM
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


:confused:

Cander
Mar 26th, 2002, 08:35 AM
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.

Cander
Mar 26th, 2002, 08:37 AM
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..