Using CSC.exe

  • Thread starter Thread starter gbagshaw
  • Start date Start date
G

gbagshaw

Hi All,

I have a project created in VS 2003 that I want to be able to compile
using CSC and not the IDE. This project includes references to other
assemblies as well as web references.

I have been looking through the Framework SDK and cannot work out how
to add a web reference when I run CSC. Could someone point me in the
right direction? Are there any good references to using the CSC
anywhere?

TIA
Baggy
 
I have been looking through the Framework SDK and cannot work out how
to add a web reference when I run CSC. Could someone point me in the
right direction?

All that happens when you add a web reference in VS is that it
generates a source file with proxy code. As long as you compile with
that file it should work. If you don't have it, you can generate it
with Wsdl.exe.


Mattias
 
Thanks Mattias,
I understand now and got it to compile using:-

csc /target:library /out:Demo.dll /debug
/recurse:C:\Inetpub\wwwroot\Demo\*.cs

Thanks again
Baggy
 
Back
Top