01. Net getting started, 01.net getting started

Source: Internet
Author: User

01. Net getting started, 01.net getting started

1 ,. net learning route and several confusing concepts. net is just a platform that provides operation.. Net program requires virtual machines, class libraries, and other C # is.. Net platform ,. the language in. Net is VB. net, PowerShell, and other ASP. net is. development website technology under the. Net platform

2 ,. net Development Environment tool: Visual Studio (VS for short) official Microsoft.. Net development tool. the NetFramework platform and VS development tool have multiple versions, such :. net has 2.0, 3.0, 4.0, 4.5, and other versions VS 2008, 2010, 2012, 2013, and other versions

3. Use notepad to write C # program and csc compiler to create a text document and add the following content:

1 using System; 2 class Test3 {static void Main (string [] args) 4 {5 Console. writeLine ("Hello World"); 6 Console. readKey (); 7} 8}

 

Run the *. cs extension name to open the command prompt and enter the folder where the cs file is located. Run the command: c: \ Windows \ Microsoft. Net \ Framework \ v4.0.30319 \ csc.exe test.csto compile and generate the exefile and run test.exe

Haha, Windows users can also play with command lines, as if they were very advanced...

4. The. NetFramework. Net program must depend on. NetFramework and cannot run independently.

5. Notes

(1) The commented code will be ignored by the code compiler and will not be involved in compilation;

(2) annotations are used to describe the function of a code segment or block useless code from compilation;

(3) There are three types of annotations;

Single-line comments: // The Code will be blocked and will not participate in compilation.

Multi-line comments:/* code to be annotated */code to be annotated in the middle will also be blocked

Document notes: // (4) not too many or too few annotations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.