473,395 Members | 1,456 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.

How to compile?

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
Nov 16 '05 #1
5 1567
In article <AA**********************************@microsoft.co m>,
an*******@discussions.microsoft.com says...
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.


If you only have the .NET Framework, you only have what is required to
run .NET applications. If you want to develop/compile .NET apps, you'll
need the .NET SDK which includes the C# compiler (csc.exe) as well as
the VB.NET compiler (vbc.exe):

http://www.microsoft.com/downloads/d...9B3A2CA6-3647-
4070-9F41-A333C6B9181D&displaylang=en

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 16 '05 #2
Patrick Steele [MVP] <pa*****@mvps.org> wrote:
If you only have the .NET Framework, you only have what is required to
run .NET applications. If you want to develop/compile .NET apps, you'll
need the .NET SDK which includes the C# compiler (csc.exe) as well as
the VB.NET compiler (vbc.exe):


No, the framework includes both of those already. You can compile
VB.NET and C# with just the framework installed. Just put the
appropriate directory (eg c:\WINDOWS\Microsoft.Net\Framework\v1.1.4322)
on the path, and run csc.exe to see the options.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #3
I have a getting started page which lists how to get going without VS net
here http://www.publicjoe.f9.co.uk/csharp/csharp01.html. This includes
everything to download including a free IDE called sharpdevelop

Also a bit about command line compiling here
http://www.publicjoe.f9.co.uk/csharp/cs04b.html

and finally how to hack VC6( if you have it) to edit and compile C#
applications here
http://www.publicjoe.f9.co.uk/csharp...l/hacking.html

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html
"Fayyaz" <an*******@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...
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

Nov 16 '05 #4
In article <MP************************@msnews.microsoft.com >,
sk***@pobox.com says...
No, the framework includes both of those already. You can compile
VB.NET and C# with just the framework installed. Just put the
appropriate directory (eg c:\WINDOWS\Microsoft.Net\Framework\v1.1.4322)
on the path, and run csc.exe to see the options.


Interesting. Now I want to dig into the SDK and see what the extra 100
megs is for... :)

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 16 '05 #5
Thank you
Fayyaz
Nov 16 '05 #6

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

Similar topics

8
by: janeaustine50 | last post by:
Python's InteractiveInterpreter uses the built-in compile function. According to the ref. manual, it doesn't seem to concern about the encoding of the source string. When I hand in an unicode...
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
10
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
15
by: steve yee | last post by:
i want to detect if the compile is 32 bits or 64 bits in the source code itself. so different code are compiled respectively. how to do this?
16
by: desktop | last post by:
I have read that using templates makes types know at compile time and using inheritance the types are first decided at runtime. The use of pointers and casts also indicates that the types will...
1
by: brianrpsgt1 | last post by:
Newbie here.... I have been able to successful pull info from a MySQL DB, get the results and output them in an HTML format using Cheetah to the screen using IDLE. I am doing this on a Windows...
3
by: NvrBst | last post by:
Right now I have C99 code in .c extensions. I compile it in VSC++ and it complains about a lot of errors. I change the extensions to .cpp and compile in VSC++ and it succeeds. Is there a way...
6
by: Ed Leafe | last post by:
I've noticed an odd behavior with compile() and code that does not contain a trailing newline: if the last line is a comment inside of any block, a syntax error is thrown, but if the last line is a...
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:
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
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,...
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
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...
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...

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.