469,898 Members | 1,547 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Command Line Compiler

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\Deb ug\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
Jul 21 '05 #1
1 3049
Hi all

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

"Shivonne" wrote:
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\Deb ug\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

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by happy | last post: by
2 posts views Thread by Jax | last post: by
3 posts views Thread by John Salerno | last post: by
1 post views Thread by Lionel | last post: by
3 posts views Thread by michael | last post: by
6 posts views Thread by virgincita schmidtmann | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.