Show dependency files and linked files in Solution Explorer

Source: Internet
Author: User

Open Visual Studio. In Solution Explorer, we can see all the file organization structures under the current project or solution. However, there are two forms that you may know, but not many people know how to create it. This is the dependency file and link file.
First look at the dependent files, the most classic is in the Web ApplicationProgramProject,

 

Mutually dependentCodeFile,

This clearly shows the relationship between the base class and the subclass through the file display method.

You can create common code files in a directory of the same level, open the. csproj or. vbproj file in a text editor, and find the node.

Add the dependentupon subnode to the corresponding class file and specify the dependent class file name. Here we will introduce two plug-ins to help us complete this operation in the right-click menu, vscommand and Nestin.

Let's take a look at the link file,

I created another project, and then created a code file pointing to a database in the figure above to provide services (note the icon ), the advantage of doing so is that I can propose an original class file for compilation, instead of copying a copy. The file here is only a link, and the previous code file is opened after clicking it.
You can create a new project, select Add-existing item, find the file you want to link to, and select "Add as Link" next to the Add button ".

In fact, this is nothing magical, but it is easy to ignore because it is not common, dedicated to this curious audience of friends.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.