Command Line Compiler

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all

I am trying to compile a DLL from the command line but I need to include one
of the web references. My command line is as follows:

csc /t:library
/r:System.dll,System.Web.dll,system.xml.dll,bin\Debug\Pub.dll,bin\Debug\ErrorClient.dll,Web References\CService\Reference.cs VarEmitter.cs
The above gives me the following error:

error CS2001: Source file 'References\CService\Reference.cs' could not be
found
error CS0006: Metadata file 'Web' could not be found

I've tried putting quotes around the web reference path but it then gives me
the following error:

fatal error CS0009: Metadata file 'c:\Inetpub\wwwroot\STGN3Controls\Web
References\CService\Reference.cs' could not be opened -- 'File is
corrupt'


I can build the project fine in Visual Studio so I'm not sure why it sees
this as being corrupt.

Can anyone help me with this please?

Thanks as always

Shivonne
 
Hi all

Managed to get this sorted - I needed to generate the class file for the web
service using the wsdl utility.
 
Back
Top