Home All Groups Group Topic Archive Search About
Author
9 Mar 2006 7:36 PM
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

Author
9 Mar 2006 8:14 PM
Mattias Sjögren
>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

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
10 Mar 2006 2:17 PM
gbagshaw
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

AddThis Social Bookmark Button