1
00:00:00,600 --> 00:00:01,700
Hello and welcome.

2
00:00:01,740 --> 00:00:13,800
In this lecture we will cover how to work with the solutions projects and the relationship between these

3
00:00:13,800 --> 00:00:16,360
two concepts in Visual Studio.

4
00:00:16,740 --> 00:00:25,850
So you will learn how to find your projects and solutions that are located on your hard drive.

5
00:00:26,280 --> 00:00:33,870
So you can use them at a later date when you launch Visual Studio.

6
00:00:33,990 --> 00:00:42,630
You will notice that the last projects or project you were working on is available via the quick link

7
00:00:43,350 --> 00:00:46,460
on the left titled reset.

8
00:00:46,470 --> 00:00:52,710
You see that was so recent so it shows that the last project I worked on what's this called my first

9
00:00:52,710 --> 00:00:53,520
web app.

10
00:00:53,730 --> 00:00:56,820
And the previous one was that one.

11
00:00:56,850 --> 00:01:06,510
So as you continue to create more project the list will grow and also push the older projects off the

12
00:01:06,510 --> 00:01:08,040
list.

13
00:01:08,040 --> 00:01:17,340
You can also pin the important projects to keep them from being removed from the list by clicking on

14
00:01:17,340 --> 00:01:26,580
the pin icon that appears when you over the course of the project name so you can see that when I hover

15
00:01:26,700 --> 00:01:27,750
there is a pin here.

16
00:01:27,750 --> 00:01:33,900
This is a pin I'm talking about so you can pin that if you want the project to remain on the list because

17
00:01:33,930 --> 00:01:39,320
as this list grows the older projects will put be pushed out of the list.

18
00:01:39,330 --> 00:01:43,730
But if you want them to remain you just pin them on that.

19
00:01:44,280 --> 00:01:51,500
You can also access your recent projects by accessing the Visual Studio menu.

20
00:01:51,570 --> 00:01:59,320
So you go to FAO and there is an option for recent projects and solutions.

21
00:01:59,340 --> 00:01:59,790
All right.

22
00:01:59,790 --> 00:02:01,580
And that would give you the list of them there.

23
00:02:01,590 --> 00:02:06,120
So that's another way to access your recent projects.

24
00:02:06,120 --> 00:02:14,760
If however your project is no longer visible in your list or recent projects you can locate it manually

25
00:02:15,180 --> 00:02:19,640
by searching through your visual studio projects folder.

26
00:02:19,680 --> 00:02:20,150
All right.

27
00:02:20,170 --> 00:02:23,600
So you can go file open

28
00:02:26,160 --> 00:02:37,080
Project's solution and click on the project's solution and to locate the video Visual Studio project

29
00:02:37,080 --> 00:02:38,100
folder.

30
00:02:38,100 --> 00:02:42,390
All right and all your projects should be listed on that so you can.

31
00:02:42,390 --> 00:02:48,180
So far I've only got two projects so the list of projects should be there and you can manually select

32
00:02:48,180 --> 00:02:49,200
it from there.

33
00:02:50,850 --> 00:02:59,250
So looking at this location here you can tell that your visual studio folder is located on the C drive.

34
00:02:59,250 --> 00:03:06,840
So if I click on that and that is actually my C drive so it will give you a list of all your visual

35
00:03:06,840 --> 00:03:11,100
studio directories.

36
00:03:11,100 --> 00:03:18,870
So to try and describe the relationship between these solutions and the projects I'm going to open one

37
00:03:18,870 --> 00:03:23,970
of our projects I'm gonna open this one which was the last project I worked on so I'm gonna click to

38
00:03:23,970 --> 00:03:24,680
open it up

39
00:03:27,740 --> 00:03:32,610
is trying to prepare this solution.

40
00:03:32,750 --> 00:03:37,570
All right so it's opened up the project.

41
00:03:38,240 --> 00:03:42,050
So on the right here we've caught the solution.

42
00:03:42,050 --> 00:03:54,440
The solution is the uppermost part of a hierarchy of Tree of references which can include one or more

43
00:03:54,530 --> 00:03:55,950
projects.

44
00:03:55,970 --> 00:04:03,530
This solution currently has just the one project.

45
00:04:03,530 --> 00:04:07,160
So this here is the solution where it's got a solution.

46
00:04:07,340 --> 00:04:15,930
And this here in bold is the project looking at the solution here.

47
00:04:16,040 --> 00:04:24,920
It may not be obvious why anyone would want more than one project per solution.

48
00:04:25,610 --> 00:04:33,950
However when you're dealing with application architecture it's sometimes beneficial to separate out

49
00:04:34,490 --> 00:04:39,050
the code that it's based on individual responsibility.

50
00:04:39,780 --> 00:04:45,190
OK in this scenario you could create different code modules or projects.

51
00:04:45,200 --> 00:04:55,070
We can think of the projects as modules and each of the projects or modules handling a specific responsibility

52
00:04:55,430 --> 00:04:59,880
within the context of the broader solution in general.

53
00:05:00,070 --> 00:05:00,470
Okay

54
00:05:03,270 --> 00:05:12,020
in a way you can look at the think of a solution as the entire hierarchy.

55
00:05:12,020 --> 00:05:22,910
Solutions can contain projects what projects contains fouls settings and assets that we will create

56
00:05:23,750 --> 00:05:25,830
with the net assembly.

57
00:05:25,940 --> 00:05:35,870
Once compiled so solutions contains projects while the projects will contain the files the settings

58
00:05:35,990 --> 00:05:48,260
and the assets that will create a dot net assembly after they have been compiled we are going to look

59
00:05:48,380 --> 00:05:56,690
at the structure and the file structure relating to the solution and project on our hard drive.

60
00:05:56,690 --> 00:06:07,410
So I've already navigated to where the files are and if you are just secure they are in the C drive.

61
00:06:07,410 --> 00:06:13,490
So if you go to C drive let me just run through it with you again so that you can see how I got there.

62
00:06:16,890 --> 00:06:18,620
All right let me show you how I got there.

63
00:06:18,620 --> 00:06:27,850
This is my C drive and then went to the users directory and went to my username.

64
00:06:28,790 --> 00:06:39,680
Followed by my documents followed by visual studio followed by the projects followed by the name of

65
00:06:39,680 --> 00:06:47,160
the project which is my first web app and then these are the files I've just come back.

66
00:06:47,180 --> 00:06:58,210
One directory so you can see that inside the projects for the there are folders for one or more solutions.

67
00:06:58,240 --> 00:07:04,820
All right so we've got a couple here we've got one for Halo world and we've got one for my first web

68
00:07:04,970 --> 00:07:06,440
app.

69
00:07:06,450 --> 00:07:18,800
So inside a solution folder such as this one here my first web app you will find a solution file which

70
00:07:18,800 --> 00:07:26,250
has a dot s and file extension as this one here.

71
00:07:26,510 --> 00:07:35,670
All right this one half dot s land that is a solution file.

72
00:07:36,320 --> 00:07:41,230
You can also find one or more project files.

73
00:07:41,360 --> 00:07:52,440
Each solution file can contain multiple projects all of which are compiled together at runtime.

74
00:07:52,640 --> 00:08:02,030
So inside the solution file will contain information like this sentence related to which projects it

75
00:08:02,030 --> 00:08:03,200
belongs to.

76
00:08:03,200 --> 00:08:11,150
So it will contain certain information relating to the projects and the solution.

77
00:08:11,150 --> 00:08:13,970
It belongs to.

78
00:08:13,970 --> 00:08:20,430
So this year is a project and this is the solution.

79
00:08:20,480 --> 00:08:31,850
There are some hidden files that you may not see so make to see them you need to on check the hide it

80
00:08:31,850 --> 00:08:33,620
in files in your computer.

81
00:08:33,640 --> 00:08:41,360
So to do that you just type pain in your search box and just typing folder options.

82
00:08:41,360 --> 00:08:50,450
One word it to give you a list like this for folder options click on view make sure this option is checked

83
00:08:50,830 --> 00:08:53,910
it you say sure he then files folders and drives.

84
00:08:53,990 --> 00:09:01,240
OK make sure that is checked and once that is checked if you file go back to my projects folder it will.

85
00:09:01,490 --> 00:09:10,670
Now if I open this project it will not include another folder called a dot v s direct and if I open

86
00:09:10,670 --> 00:09:15,590
up this directory it will contain.

87
00:09:15,590 --> 00:09:22,230
If a dot is you or extension this is known as a solution.

88
00:09:22,230 --> 00:09:32,300
Use the option file it is used by visuals to do to put the solution explorer back into the state in

89
00:09:32,300 --> 00:09:35,340
which the user last left it.

90
00:09:35,390 --> 00:09:38,810
So let's click on it and you should see it inside here.

91
00:09:38,810 --> 00:09:41,700
This is my project inside there.

92
00:09:41,720 --> 00:09:45,980
This is the file I'm talking about the dot as your extension.

93
00:09:46,160 --> 00:09:48,640
Okay.

94
00:09:48,680 --> 00:09:58,910
Also inside the project folder there are all the files that you cannot see from within the solution

95
00:09:59,060 --> 00:10:00,230
Explorer window.

96
00:10:00,590 --> 00:10:03,800
So let me double click on this project folder here.

97
00:10:04,250 --> 00:10:05,470
And these are the files.

98
00:10:05,480 --> 00:10:08,430
For example the bin file click on the bin here.

99
00:10:08,570 --> 00:10:09,530
The being here.

100
00:10:09,530 --> 00:10:09,920
What.

101
00:10:09,920 --> 00:10:13,100
The bin contains different types of files.

102
00:10:13,120 --> 00:10:22,670
There is also a dot dear nail file that represents a dot net assembly that is created whenever you run

103
00:10:22,910 --> 00:10:25,220
your app in the web browser.

104
00:10:25,220 --> 00:10:26,510
So there should be one here.

105
00:10:26,520 --> 00:10:27,750
File scroll down.

106
00:10:28,160 --> 00:10:29,410
So this is a here.

107
00:10:29,420 --> 00:10:31,050
My first web app.

108
00:10:31,050 --> 00:10:34,910
So this is a DL L that is created.

109
00:10:34,910 --> 00:10:43,370
It represents a dot net assembly that is created whenever you run your app in your web browser.

110
00:10:43,370 --> 00:10:53,000
Also inside your project directory here there is another file I want to mention which is this one here

111
00:10:53,510 --> 00:10:56,660
is called my first web Dot.

112
00:10:56,690 --> 00:10:58,650
See s approach.

113
00:10:59,120 --> 00:11:00,060
Okay.

114
00:11:00,260 --> 00:11:01,280
What this is.

115
00:11:01,280 --> 00:11:11,090
It's a C sharp project file just as this solution file keeps track of which projects needs to be compiled

116
00:11:11,090 --> 00:11:12,380
at runtime.

117
00:11:12,380 --> 00:11:21,920
The project file keeps track of all the settings and the files that need to be compiled to run the project

118
00:11:22,040 --> 00:11:23,300
successfully.

119
00:11:23,450 --> 00:11:26,120
That's filed here.

120
00:11:26,120 --> 00:11:28,790
So let's set for this select show.

121
00:11:28,790 --> 00:11:38,270
So you should now have some idea on knowledge how to navigate through these solutions and the projects

122
00:11:38,450 --> 00:11:39,470
folder.

123
00:11:39,470 --> 00:11:39,990
All right.

124
00:11:40,010 --> 00:11:41,590
I hope it has been useful.

125
00:11:41,600 --> 00:11:43,310
Thank you so much for watching.

126
00:11:43,310 --> 00:11:43,910
Bye for now.
