Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

The environment


May 11, 2021 C#


Table of contents


The C#environment

In this chapter, we'll discuss the tools you need to create c# programming. W e've already mentioned that C# is part of the .Net framework and is used to write .Net applications. So, before we discuss the tools available to run the C# program, let's look at the relationship between the C# and .Net frameworks.

.Net Framework (.Net Framework)

The .Net framework is an innovative platform to help you write the following types of applications:

  • Windows applications
  • Web application
  • Web services

The .Net framework application is a multi-platform application. T he framework is designed to work in the following languages: C, C, Visual Basic, Jscript, COBOL, and more. All of these languages can access the framework and interact with each other.

The .Net framework consists of a huge code base for client languages such as C. Here are some of the components of the .Net framework:

  • Common Language Runtime - CLR
  • .Net Framework Class Library
  • Common Language Specification
  • Common Type System
  • Metadata and Components
  • Windows Forms
  • ASP.Net and ASP.Net AJAX
  • ADO.Net
  • Windows Workflow Foundation - WF
  • Windows Presentation Foundation
  • Windows Communication Foundation - WCF
  • Linq

For more information about each component, see microsoft's documentation.

Integrated Development Environment (Integrated Development Environment - IDE)

Microsoft provides the following development tools for programming in C#:

  • Visual Studio 2010 (VS)
  • Visual C# 2010 Express (VCE)
  • Visual Web Developer

The latest two are free to use and can be downloaded from Microsoft's official website. W ith these tools, you can write a variety of programs, from simple command-line applications to more complex applications. You can also use a basic text editor, such as Notepad, to write a source code file for C# and compile code as a component using the command-line compiler (part of the .NET framework).

Visual Express and Visual Web Developer Express are customized versions of Visual Studio and have the same look and feel. T hey retain most of visual Studio's functionality. In this tutorial, we're using Visual C# 2010 Express.

You can download it from Microsoft Visual Studio. I t is automatically installed on your machine. Note that you need an available network connection to complete the express installation.

Write a C#program on Linux or Mac OS

Although the .NET framework runs on the Windows operating system, there are some versions that run on other operating systems to choose from. Mono is an open source version of the .NET framework that contains a C# compiler and can run on a variety of operating systems, such as various versions of Linux and Mac OS. For more information, visit Go Mono.

Mono's goal is not only to run Microsoft .NET applications across platforms, but also to provide Linux developers with better development tools. Mono runs on a variety of operating systems, including Android, BSD, iOS, Linux, OS X, Windows, Solaris, and UNIX.

If you want to use the C#language under your Mac, you first have to have a cross-platform .Net environment - Mono:

Mono Official Download Address: http://www.mono-project.com/

With the Mono platform, you have to have a good tool:

Xmarin Studio Download Address: http://www.monodevelop.com/