C# Tutoriallogin
C# Tutorial
author:php.cn  update time:2022-04-11 14:06:23

C# environment



#In this chapter, we will discuss the tools needed to create C# programming. We have already mentioned that C# is part of the .Net framework and is used for writing .Net applications. So, before discussing the tools available for running C# programs, let’s first understand the relationship between C# and the .Net framework.

.Net Framework (.Net Framework)

.Net Framework is an innovative platform that can help you write the following types of applications:

  • Windows Application

  • Web Application

  • Web Service

.Net framework application is many Platform applications. The framework is designed in such a way that it works with various languages: C#, C++, Visual Basic, Jscript, COBOL, and many more. All these languages ​​have access to the framework and can interact with each other.

The .Net Framework consists of a huge code base for client-side languages ​​like C#. Some components of the .Net framework are listed below:

  • Common Language Runtime - CLR

  • .Net Framework Class Library (.Net Framework Class Library)

  • Common Language Specification

  • Common Type System

  • Metadata and Assemblies

  • Windows Forms

  • ASP.Net and ASP.Net AJAX

  • ADO.Net

  • ##Windows Workflow Foundation (WF)

  • Windows Presentation Foundation

  • Windows Communication Foundation (Windows Communication Foundation - WCF)

  • LINQ

For details on each component, see Microsoft's documentation.

C# Integrated Development Environment (IDE)

Microsoft provides the following development tools for C# programming:

  • Visual Studio 2010 (VS)

  • Visual C# 2010 Express (VCE)

  • Visual Web Developer

The latter two are free to use and can be downloaded from Microsoft’s official website. Using these tools, you can write a variety of C# programs, from simple command-line applications to more complex applications. You can also write C# source code files using a basic text editor (such as Notepad) and compile the code into components using a command-line compiler (part of the .NET Framework).

Visual C# Express and Visual Web Developer Express editions are customized versions of Visual Studio and have the same look and feel. They retain most of the functionality of Visual Studio. In this tutorial, we are using Visual C# 2010 Express.

You can download it from Microsoft Visual Studio. It will be automatically installed on your machine. Please note that you will need an active internet connection to complete the Express Edition installation.

Writing C# programs on Linux or Mac OS

Although the .NET Framework runs on the Windows operating system, there are also versions available that run on other operating systems. Mono is an open source version of the .NET framework that includes a C# compiler and can run on a variety of operating systems, such as various versions of Linux and Mac OS. For more details, visit Go Mono.

The purpose of Mono is not only to run Microsoft .NET applications cross-platform, but also to provide better development tools for Linux developers. Mono runs on a variety of operating systems, including Android, BSD, iOS, Linux, OS X, Windows, Solaris, and UNIX.

php.cn