472,143 Members | 1,178 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

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 3163
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.