Visual Studio 2013: How to reference project folders in Using

2

I have a problem, I have in the same project the stock and the box, I'm making a screen that allows you to choose between them and depending on the button you tighten it opens one of the two.

However to avoid confusion the BLL2, DAL2, GUI2 and Model2 were made within a Project Folder called the Box.

The issue is that in the code below, I could not figure out how to use Using to say that I'm using GUI2 in that code. As it is inside a folder I did not find a command for it.

    
asked by anonymous 24.01.2017 / 16:47

1 answer

1

You do not add a reference to the folder, but to projects. If the folder has 5 projects, it will be 5 "includes".

You need to click References , then Add and go to the Solution tab. There will appear all the projects of your solution.

And to use classes created in an external project, just add using to the name of the namespace that this class belongs to. Ex: using BLL2.Models.Cliente .

The Admin project is referred to as the Common project in the same solution.

    
24.01.2017 / 16:52