What do I need to quickly start Windows C #?

What bits and pieces do I need to compile and run a simple Windows console application written in C #? Does the version of Windows matter?

+4
source share
4 answers

You need

  • C # compiler to compile application
  • .NET Framework for running an application

The C # compiler comes with the free (as in beer) Visual C # Express Edition . The C # command-line compiler ( csc.exe ) is included in every installation of the .NET Framework.

The .NET Framework is included in various versions in recent versions of Windows. See: Which version of the .NET Framework is included in which version of the OS?

More recent versions of the .NET Framework can be downloaded free of charge from the Microsoft website .

The version of the .NET Framework must match the version with which the application was compiled.

+9
source

1) C # software development kit (SDK) , which will include a compiler, runtime, and libraries. Two main options for windows:
a) .NET sdk from Microsoft ... free, like in beer, only for windows
b) Mono sdk from Novell (open source) ... free both in free beer and in freedom and works on windows, linux, mac ..

2) C # Integrated Development Enviroment (IDE) , if you want to develop quickly and painlessly. Here you have at least four options.
a) Visual C # Express edition ... from microsoft, works only with .NET and only on windows ... for free, like in beer
b) Monodevelop ... works with both .NET and Mono, and also has versions for windows, linux, mac .. free, like in beer, free like in freedom c) SharpDevelop .... only windows, because it works only on .NET.
d) QuickSharp ... only Windows because it only works on top of .NET.

3) Documentation C # language specification, MSDN (the most extensive resource) and an infinite number of books and articles

Note. . Each SDK and IDE download page will indicate the requirements for the Windows version for development. So yes, the version of the windows does matter. Not only this, but also the SDK and IDE versions are also important, because C # is under active development, and the last C # function does not work with old tools.

+1
source

All you need is the .NET Framework redistribution package and Notepad.

If you have Windows Vista or later, the OS will already ship with the .NET Framework 2.0 installed with the C # 2.0 compiler (you may need to install this from your distribution).

If you have Windows 2003, it comes with the .NET Framework 1.1 and C # 1.0. You will need to download .NET 2.0 or later to take advantage of the features provided with later versions (e.g. generics).

Here you can find a list of different wireframe versions:

Download .NET Framework

There are links at the bottom of the page for older versions of the .NET Framework.

Which one will work on your computer will depend on the combination of the version and service pack of Windows in which you work.

0
source

Just download Visual C # Express. It is free and includes everything you need, including a project type for console applications.

If you are using Windows XP or newer, you are fine. The installer will make sure you have the latest version of the framework installed.

0
source

All Articles