473,809 Members | 2,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

compile csharp file

hi,
how should i compile csharp programs in the cmd command prompt without
being installing visual studio .net. I have installed framework 1.1
and sdk. also i have executed the vsvars32 btach file. still iam not
able to compile the csharp file. the error generated is:

csc is not recognized as internal or external command.

But in another system in which visual studio has been installed, i am
able to compile the csharp files in cmd command prompt after executing
the batch file. what could be the solution for this problem.

regards,
kalaivanan

Jan 29 '07 #1
1 1701
It simply isn't finding it in your path - so find "csc.exe" on your
hard-disk and cd to that folder, or include the full path, or put it
into your system path. It is usually somewhere around:

%WINDOWS%\Micro soft.NET\Framew ork\v1.1.4322

FYI Note that "Visual C# 20005 Express Edition" (for 2.0 apps) is a
free download.

Marc
Jan 29 '07 #2

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

Similar topics

3
11586
by: Matt | last post by:
I'm trying to simply convert a .avi file recorded by our program to a wmv file, of course compressed as possible. I've looked at the examples provided by microsoft @ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmencode/htm/completecodeexamples.asp in both CSharp and VB6. I can't get them to compile. Some of the objects listed (namely the IWMEncVideoSource2 object in CSharp and IWMEncAudioSource and...
6
3324
by: Baskar RajaSekharan | last post by:
In C-sharp, I wnat to know whether the Component is compiled in Debug Mode or Run Mode through Code. How is it possible? Is there any way to Access the Config file and check? Please let me know with example
5
1591
by: Fayyaz | last post by:
He I have netframework installed on my system. I created a folder "test" on my C:\ drive. I have a file named "Hello.cs" saved in that directory "C:\test" . Please let me know how to compile this Hello.cs file. I am new to C#. Thanks Fayyaz
1
2015
by: Keith Clark | last post by:
When I load a csharp program into the MS DbgCLR.exe debugger and trace it everything is fine the first time. Assume now, I change somewhere a code statement in the source file (outside the Debug-IDE) without re-compiling it. DbgCLR.exe recognizes that something has changed in the source file and pops up a warning dialog asking if the new source should be used. If I click "yes" and re-start the debugging process from the beginning...
5
6025
by: NOSPAM | last post by:
I don't have Visual Studio, Is there an easy way to compile bunch of .cs files at once? I have written several .cs files and put in the /bin folder .... everytime I add a new file, I have to edit the batch file, it's kind of annoying if the project grows bigger. Is there any free tools out there that can automate this? N.S.
3
3098
by: | last post by:
I am trying to compile a simple c# class in Web Matrix called howdy.cs: // Program start class public class HowdyPartner { // Main begins program execution public static void Main() { // Write to console
2
1389
by: Maurizio Poletto | last post by:
I should appeal to your experience to have a suggest as to solve my problem. I have developed an application using .Net (1.1) where a handler (derived by IHttpHandler) intercepts every web request beucase the files, formed the page, are stored in a database. No problem happens if the page is a pure html: in fact I fetch it from the database and output it as reponse. If it contains an image (for example), a new request is fired...
0
1775
by: Ramesh2006 | last post by:
Hi, The following error occurred when i programmatically compile another project from my present project. The Error: error CS0234:The type or namespace name 'Windows' does not exist in the namespace 'System' <are you missing an assembly reference> The Source Code:
2
6932
by: Andrus | last post by:
I need compile in-memory assembly which references to other in-memory assembly. Compiling second assembly fails with error Line: 0 - Metadata file 'eed7li9m, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' could not be found Saving assembly to Windows temp directory for referencing only creates huge amout of temporary
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
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
10633
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...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9198
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
7651
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
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.