473,386 Members | 1,796 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,386 software developers and data experts.

Command Line Compile

Hi,

Trying to learn how to compile C# from the Command line.

I've got my program running in Visual Studio, but I'm getting an error on
the command line:

The type or names space 'UserControl' could not be found (are you missing a
using directive or an assembly reference).

I assume I need to include something else?

How do I specify this?

Thank you!
Nov 15 '05 #1
2 2869

"Subash" <su***********@nospam.com> wrote in message
news:54**************@cpmsftngxa06.phx.gbl...
What you need to specify depends on what is 'UserControl' in the current
context. If this is a namespace, you need to specify this as
namespace UserControl;

if this is a type in one of the namespaces, then you need to specify the
namespace (similar to the above) that contains this type.

Helps?


It helps a little, but I need the exact syntax to use on the command line.

In my case, I have a class that extends System.Windows.Forms.UserControl
and that is where the error is occuring.

Thanks,

Drew

Nov 15 '05 #2
Are you command line compiling on the same computer installed with Visual
Studio ( & the .NET framework)?
If not, perhaps it can't find the System.Windows.Forms.dll assembly which
contains System.Windows.Forms.UserControl.
I believe this is normally registered in the global assembly cache, unless
the .NET framework is not installed correctly?!?
"Drew" <so*****@hotmail.com> wrote in message
news:OO**************@TK2MSFTNGP10.phx.gbl...

"Subash" <su***********@nospam.com> wrote in message
news:54**************@cpmsftngxa06.phx.gbl...
What you need to specify depends on what is 'UserControl' in the current
context. If this is a namespace, you need to specify this as
namespace UserControl;

if this is a type in one of the namespaces, then you need to specify the
namespace (similar to the above) that contains this type.

Helps?


It helps a little, but I need the exact syntax to use on the command line.

In my case, I have a class that extends System.Windows.Forms.UserControl
and that is where the error is occuring.

Thanks,

Drew

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: rforman1 | last post by:
I have found many threads with this question asked and ostensibly answered, but none with an example of how exactly to do it. Help! I know that in order to set up the values of command line...
2
by: aladdin | last post by:
I use outside .jpg picture files in a Windows Form project. I try to compile use csc.exe at command line. I use resgen.exe to generate a resource file like: resgen.exe Form1.resx...
11
by: Andrew Warren | last post by:
When I build my winforms exe using the IDE I have a perfectly functioning exe. If I try to build the same project using the .Net Framework csc compiler I get a seemingly valid exe produced...
5
by: Genboy | last post by:
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1, is no longer compiling for me via the command line. As I have done 600 times in the last year and a half, I can compile to...
4
by: Brett | last post by:
I have recently purchased Visual C++ . Net compiler and i am trying to compile a project that i had working in Visual C++ 6.0. When I compile, I am receiving the warning: cl : Command line...
6
by: Todd A | last post by:
If I use the following in my code behind page: Public Class _Default Inherits System.Web.UI.Page The page will compile with no errors from the command line compiler (vbc.exe) But, If I...
1
by: Matt Creely | last post by:
I'm using the vbc.exe to compile a .dll automatically for me. I have all my framework references and imports setup correctly. And it will compile just fine, with a few lines of code commented...
5
by: clsmith66 | last post by:
I've been asked to find out if a project is possible, but I'm not having much luck finding the information I need, I hope some one can help. I need to see if I can build a windows service on the...
0
by: chandan agarwal | last post by:
hi I have been given the task of building vc++ programs at the command line using make software. i have installed gnu make-3.81 version. i was able to build and run makefiles for turbo c++. but...
3
by: Tom Baxter | last post by:
I just set up VS 2008 B2 and did a simple command line compile from the VS command prompt. I received this warning: warning CS1668: Invalid search path 'C:\Program Files\Microsoft...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.