Hello and welcome.
In this lecture we will cover how to work with the solutions projects and the relationship between these
two concepts in Visual Studio.
So you will learn how to find your projects and solutions that are located on your hard drive.
So you can use them at a later date when you launch Visual Studio.
You will notice that the last projects or project you were working on is available via the quick link
on the left titled reset.
You see that was so recent so it shows that the last project I worked on what's this called my first
web app.
And the previous one was that one.
So as you continue to create more project the list will grow and also push the older projects off the
list.
You can also pin the important projects to keep them from being removed from the list by clicking on
the pin icon that appears when you over the course of the project name so you can see that when I hover
there is a pin here.
This is a pin I'm talking about so you can pin that if you want the project to remain on the list because
as this list grows the older projects will put be pushed out of the list.
But if you want them to remain you just pin them on that.
You can also access your recent projects by accessing the Visual Studio menu.
So you go to FAO and there is an option for recent projects and solutions.
All right.
And that would give you the list of them there.
So that's another way to access your recent projects.
If however your project is no longer visible in your list or recent projects you can locate it manually
by searching through your visual studio projects folder.
All right.
So you can go file open
Project's solution and click on the project's solution and to locate the video Visual Studio project
folder.
All right and all your projects should be listed on that so you can.
So far I've only got two projects so the list of projects should be there and you can manually select
it from there.
So looking at this location here you can tell that your visual studio folder is located on the C drive.
So if I click on that and that is actually my C drive so it will give you a list of all your visual
studio directories.
So to try and describe the relationship between these solutions and the projects I'm going to open one
of our projects I'm gonna open this one which was the last project I worked on so I'm gonna click to
open it up
is trying to prepare this solution.
All right so it's opened up the project.
So on the right here we've caught the solution.
The solution is the uppermost part of a hierarchy of Tree of references which can include one or more
projects.
This solution currently has just the one project.
So this here is the solution where it's got a solution.
And this here in bold is the project looking at the solution here.
It may not be obvious why anyone would want more than one project per solution.
However when you're dealing with application architecture it's sometimes beneficial to separate out
the code that it's based on individual responsibility.
OK in this scenario you could create different code modules or projects.
We can think of the projects as modules and each of the projects or modules handling a specific responsibility
within the context of the broader solution in general.
Okay
in a way you can look at the think of a solution as the entire hierarchy.
Solutions can contain projects what projects contains fouls settings and assets that we will create
with the net assembly.
Once compiled so solutions contains projects while the projects will contain the files the settings
and the assets that will create a dot net assembly after they have been compiled we are going to look
at the structure and the file structure relating to the solution and project on our hard drive.
So I've already navigated to where the files are and if you are just secure they are in the C drive.
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.
All right let me show you how I got there.
This is my C drive and then went to the users directory and went to my username.
Followed by my documents followed by visual studio followed by the projects followed by the name of
the project which is my first web app and then these are the files I've just come back.
One directory so you can see that inside the projects for the there are folders for one or more solutions.
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
app.
So inside a solution folder such as this one here my first web app you will find a solution file which
has a dot s and file extension as this one here.
All right this one half dot s land that is a solution file.
You can also find one or more project files.
Each solution file can contain multiple projects all of which are compiled together at runtime.
So inside the solution file will contain information like this sentence related to which projects it
belongs to.
So it will contain certain information relating to the projects and the solution.
It belongs to.
So this year is a project and this is the solution.
There are some hidden files that you may not see so make to see them you need to on check the hide it
in files in your computer.
So to do that you just type pain in your search box and just typing folder options.
One word it to give you a list like this for folder options click on view make sure this option is checked
it you say sure he then files folders and drives.
OK make sure that is checked and once that is checked if you file go back to my projects folder it will.
Now if I open this project it will not include another folder called a dot v s direct and if I open
up this directory it will contain.
If a dot is you or extension this is known as a solution.
Use the option file it is used by visuals to do to put the solution explorer back into the state in
which the user last left it.
So let's click on it and you should see it inside here.
This is my project inside there.
This is the file I'm talking about the dot as your extension.
Okay.
Also inside the project folder there are all the files that you cannot see from within the solution
Explorer window.
So let me double click on this project folder here.
And these are the files.
For example the bin file click on the bin here.
The being here.
What.
The bin contains different types of files.
There is also a dot dear nail file that represents a dot net assembly that is created whenever you run
your app in the web browser.
So there should be one here.
File scroll down.
So this is a here.
My first web app.
So this is a DL L that is created.
It represents a dot net assembly that is created whenever you run your app in your web browser.
Also inside your project directory here there is another file I want to mention which is this one here
is called my first web Dot.
See s approach.
Okay.
What this is.
It's a C sharp project file just as this solution file keeps track of which projects needs to be compiled
at runtime.
The project file keeps track of all the settings and the files that need to be compiled to run the project
successfully.
That's filed here.
So let's set for this select show.
So you should now have some idea on knowledge how to navigate through these solutions and the projects
folder.
All right.
I hope it has been useful.
Thank you so much for watching.
Bye for now.