473,395 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 3247
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: happy | last post by:
I need to download Command line C compiler ASAP ? Where can I find the latest and moden one ?
2
by: Jax | last post by:
I have VStudio2002 standard, yes it sucks, yes you can laugh as me as long as the laugh carries some pity. Problem being is that there is no standard template for creating a custom control. I...
4
by: Francesco Martinelli | last post by:
I need to create a multiple file assemby: this requires working directly with the command line compiler (no IDE support!). After a few tests I found my problem comes from the issue described below....
3
by: John Salerno | last post by:
I just installed the SDK, but when I typed csc /help on the command line (from the C: directory), it said 'csc' wasn't a recognized command. Why didn't that work? Do I need to be in a different...
1
by: Lionel | last post by:
Hi everyone, I've been practicing C# by writing some programs with the downloadable SDK from Microsoft. I'm writing the programs using Notepad and compiling with the command line compiler. I...
3
by: michael | last post by:
How can I compile my VS.NET ASP.NET project from the command line?
4
by: billben74 | last post by:
Despite advances in devstudio .NET building large projects can still be difficult. Is there a way, perhaps using EnvDev class or some other class that would allow output of the "command line" that...
4
by: Bit byte | last post by:
I have a project that I normally build (without problems) from the DevStudio IDE. However, I have embarked on automating all my builds (this test project being one of several). The project...
0
by: GT | last post by:
Hello I'm trying to embed .resource files into a Windows application in VS2005, and then compile and run the program from VS2005. This does not work because the debugger seems not find the...
6
by: virgincita schmidtmann | last post by:
Good evening, I would like to pass the size of an array from the commandline. int main(int argc, int *argv) { .... max=*argv; int list; ....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.