473,804 Members | 2,959 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2879

"Subash" <su***********@ nospam.com> wrote in message
news:54******** ******@cpmsftng xa06.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.UserContr ol
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.UserContr ol.
I believe this is normally registered in the global assembly cache, unless
the .NET framework is not installed correctly?!?
"Drew" <so*****@hotmai l.com> wrote in message
news:OO******** ******@TK2MSFTN GP10.phx.gbl...

"Subash" <su***********@ nospam.com> wrote in message
news:54******** ******@cpmsftng xa06.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.UserContr ol
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
2072
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 arguments from within the IDE, I go to Project Properties, Configuration Properties, and then the text box labeled "Command Line Arguments" under the label "Start Options." But what exactly do I put into that text box? What I want to do is set up a...
2
453
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 MyNameSpace.MainForm.resources then use csc to compile: csc /nologo /t:winexe /out:app1.exe /res:MyNameSpace.MainForm.resources /win32icon:App.ico *.cs The output exe file has the same size as compiled in VS.NET IDE, however, at runtime the program still...
11
3232
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 (although it's only 44 Kb instead of 76 Kb). When I then run the csc-compiled exe I immediately get a "System.TypeInitializationException". What am I missing? I'm guessing there may be some batch
5
14043
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 VIS.DLL via Visual Studio, with no problems: ------ Rebuild All started: Project: VIS, Configuration: Debug .NET ------ Preparing resources... Updating references...
4
7554
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 warning D4025 : overriding '/EHs' with '/EHa' I have specifically asked for the /EHsc switch because that is what I require.
6
1472
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 insert my own base page to inherit from, say,
1
1586
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 out. Here's the problem. I have a vb class in my project("gamelan") called "Utilities". It's a public class, with a bunch of public shared methods I use through out the site. So when I try to compile, I get this error: ...
5
3413
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 fly customized to a specific client. Is it possible to run the VS command line tool through another application (VB.NET)? I'm thinking I can run the tools as a process and pass the necessary parameters to the process, but I'm not sure how to go...
0
1424
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 when i tried it for vc++ i faced a lot of problems. i found that vc++ has its own linker link and compiler cl. i am giving u a makefile tht was made for turbo c++. can u tell me what changes to i need to do make in it to make it run at the...
3
4581
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 SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' When I checked, sure enough, the "lib" directory is not present'. Perhaps I
0
9571
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.