1 00:00:00,570 --> 00:00:01,820 Hello and welcome. 2 00:00:01,860 --> 00:00:10,520 In this lecture we are going to create a version of your first C SHARP program using Visual Studio I.D. 3 00:00:10,570 --> 00:00:16,080 e the idea stands for integrated development environment. 4 00:00:16,140 --> 00:00:25,230 So we're going to create exactly the same application we created using the text editor from The Visual 5 00:00:25,230 --> 00:00:26,280 Studio idea. 6 00:00:26,340 --> 00:00:29,510 So let's get going. 7 00:00:29,670 --> 00:00:38,970 So let's launch features to do so I'll go to my start menu and look for visual studio and go Visual 8 00:00:38,970 --> 00:00:42,330 Studio 2015. 9 00:00:42,510 --> 00:00:48,160 So I just double click with my visual studio I can't find it. 10 00:00:49,650 --> 00:00:50,880 Oh there is right here. 11 00:00:51,100 --> 00:00:51,490 OK. 12 00:00:51,490 --> 00:00:57,090 Is our click feature studio 2015 to launch the Visual Studio. 13 00:00:58,830 --> 00:01:03,760 So this is what features to your looks like when it is launched. 14 00:01:03,840 --> 00:01:07,070 So a need to create a console app. 15 00:01:07,080 --> 00:01:13,950 So I go to file I'm going you go project 16 00:01:16,300 --> 00:01:26,590 and I should get a list of templates which will give me a guide as to the type of project I want to 17 00:01:26,620 --> 00:01:27,400 create. 18 00:01:28,240 --> 00:01:30,310 So it's initializing the template. 19 00:01:30,970 --> 00:01:38,180 So these are the various visual studio template so why need to do here which is called visual see sharp. 20 00:01:38,200 --> 00:01:45,580 I need to have that highlighted and here I need to click console Happ that means e to display the application 21 00:01:45,610 --> 00:01:46,320 in a console. 22 00:01:46,330 --> 00:01:50,680 So Uncle console out there and then here is given it a default name. 23 00:01:50,680 --> 00:01:55,570 I'm just going to change that and typing Hey 24 00:01:59,530 --> 00:02:08,150 world and notice is put the solution name there as well as same as the name I just click Okay. 25 00:02:08,350 --> 00:02:14,170 And it should generate some basic code for me. 26 00:02:15,760 --> 00:02:16,240 Excellent. 27 00:02:16,240 --> 00:02:24,760 So this all I've done is just name the file and Visual Studio has automatically created some basic code 28 00:02:24,760 --> 00:02:25,680 for me. 29 00:02:25,750 --> 00:02:31,840 These here they are classes Westcott using that means is using these classes. 30 00:02:31,850 --> 00:02:40,240 Notice when we created using the text editor we had to use system dot by here. 31 00:02:40,240 --> 00:02:41,150 You don't we. 32 00:02:41,230 --> 00:02:46,960 We're not going to use that because it's already defined here with this using them as you using the 33 00:02:46,960 --> 00:02:48,010 system class. 34 00:02:48,050 --> 00:02:50,070 It's all various classes. 35 00:02:50,170 --> 00:02:50,560 All right. 36 00:02:50,590 --> 00:02:54,800 So we are going to write our code in between this curly braces here. 37 00:02:54,880 --> 00:03:00,610 So I just type down and in between there is where we're going to write our code notice this yellow strip 38 00:03:00,610 --> 00:03:01,300 here. 39 00:03:01,300 --> 00:03:04,160 That means you have code that you have not saved. 40 00:03:04,210 --> 00:03:05,490 That's what I'm trying to tell you. 41 00:03:06,220 --> 00:03:06,630 All right. 42 00:03:06,640 --> 00:03:08,680 So we've got the basic. 43 00:03:08,680 --> 00:03:12,190 This is a namespace what we call the application. 44 00:03:12,250 --> 00:03:16,750 So I'm going to write just basically two line of code. 45 00:03:16,770 --> 00:03:20,480 It's going to be console which means it's a console. 46 00:03:20,770 --> 00:03:22,670 Notice this menu here. 47 00:03:22,720 --> 00:03:25,030 This is called intelligence. 48 00:03:25,030 --> 00:03:31,570 It's built into a feature studio a kind of like gives you a guide as to what you're trying to type. 49 00:03:31,600 --> 00:03:37,560 So it tries to detect or guess what you're trying to type and gives you suggestions. 50 00:03:37,660 --> 00:03:42,100 So the typing console notice has got console there. 51 00:03:42,100 --> 00:03:46,050 So I just click on the console. 52 00:03:46,040 --> 00:03:48,640 Dot writes line 53 00:03:51,210 --> 00:03:53,930 notice already got the right line there in the library. 54 00:03:54,040 --> 00:03:54,340 OK. 55 00:03:54,370 --> 00:03:56,800 So console the right line. 56 00:03:57,580 --> 00:04:06,470 And then I put parentheses open and close in between the parentheses I type in the word hello. 57 00:04:07,620 --> 00:04:12,390 Well put exclamation there. 58 00:04:12,490 --> 00:04:13,360 All right. 59 00:04:13,360 --> 00:04:21,270 And then put a semicolon there and then a tab down next line. 60 00:04:22,600 --> 00:04:28,330 I will do console again So intelligence is helping me there. 61 00:04:28,690 --> 00:04:34,950 Console makes me write the code faster great like. 62 00:04:34,960 --> 00:04:35,730 Notice here 63 00:04:38,650 --> 00:04:44,320 and then I put only in parentheses and then a semicolon. 64 00:04:45,130 --> 00:04:49,080 So my code is basically done. 65 00:04:49,240 --> 00:04:50,950 So I need to save my code. 66 00:04:50,980 --> 00:04:57,700 So I need to see the point of folders here at click save and is turn green which means it has been saved 67 00:04:58,780 --> 00:05:02,600 on the left here is what will you call a solution explorer. 68 00:05:02,980 --> 00:05:09,250 So when you create a project in Visual Studio it creates a complex solution for the project. 69 00:05:09,820 --> 00:05:11,920 That's the name of the project. 70 00:05:11,920 --> 00:05:15,340 The solution is called Hello World which is the name of the project. 71 00:05:15,340 --> 00:05:20,330 The actual project name the siege up folder is called or the application. 72 00:05:20,380 --> 00:05:26,770 Notice got C SHARP It's called Hello World and these are the various properties linked but won't go 73 00:05:26,770 --> 00:05:32,570 into details of that at the moment the focus of this is just to create a very basic console app. 74 00:05:32,680 --> 00:05:35,380 So all we've done have created two lines of code. 75 00:05:35,380 --> 00:05:37,100 This is the only thing we've done here. 76 00:05:37,150 --> 00:05:43,140 Now we don't have to manually compile like we did when we using the text editor. 77 00:05:43,150 --> 00:05:44,590 That's the difference here. 78 00:05:44,680 --> 00:05:48,380 The Visual Studio idea mixing so simple. 79 00:05:48,430 --> 00:05:51,400 So what we do to compile it we just hit this button here. 80 00:05:51,400 --> 00:05:58,390 This is a start and it will compile the code to say it so is built into code tells you here build started 81 00:05:58,810 --> 00:06:04,720 building it and once it does that it will display the result in the console bam. 82 00:06:04,720 --> 00:06:05,840 That's it. 83 00:06:05,860 --> 00:06:10,840 See the difference between doing it this way and doing it via the text editor. 84 00:06:10,960 --> 00:06:18,210 The Turks had it always manual process and it's painful and it's all so prone to errors by using your 85 00:06:18,210 --> 00:06:24,730 fingers to do this the less hassle and you're less prone to errors. 86 00:06:24,740 --> 00:06:26,990 Okay so that's our application. 87 00:06:26,990 --> 00:06:34,130 This is just some diagnostic monitoring the application and stop seeing what the what we're using within 88 00:06:34,130 --> 00:06:35,510 the application. 89 00:06:35,720 --> 00:06:39,320 Money is looking is basically monitoring the memory. 90 00:06:39,320 --> 00:06:39,760 All right. 91 00:06:39,770 --> 00:06:47,000 So to ask you can click X to ask about application so the application has stopped running. 92 00:06:49,760 --> 00:06:58,940 So in this lecture we have successfully created a very simple console app using Visual Studio i d e 93 00:06:59,810 --> 00:07:01,910 thank you so much for watching. 94 00:07:01,940 --> 00:07:02,690 Bye for now.