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