tags:

views:

430

answers:

2

I downloaded and installed the .net framework 4.0, but I didn't install VS 2010, because VS 2010 require the high-performance computer hardware. I have no but I expect to taste the C# 4.0 feature.

+4  A: 

you need the .net 4.0 compiler, which at the moment is only available with vs2010.

This thread might answer your question http://stackoverflow.com/questions/591726/where-i-can-download-compiler-for-c-4-0-without-visual-studio-2010

Marcom
I wasn't sure about that, good catch Marcom!
Lazarus
The thread you provided can't solve my question.
@bruce If you have installed framework 4.0 then you should be able to compile C# code using the C# complier in the 4.0 framework folder but you will have to using command line.
Nathan W
Really? I will try to do it following your advice. Thanks.
+1  A: 

The .NET framework client profile includes the compiler (csc.exe). For example, on my machine, it's at:

c:\Windows\Microsoft.NET\Framework64\v4.0.20506\csc.exe

The 32-bit version is at:

c:\Windows\Microsoft.NET\Framework\v4.0.20506\csc.exe

If you're familiar with the command-line compiler syntax, most applications can be written just using it, notepad and referencing the appropriate assemblies. It won't be a terribly pleasant experience though.

Barry Kelly