C # development mode-multi-level dll reference,

Source: Internet
Author: User

C # development mode-multi-level dll reference,

C # The solution provides two reference methods: project reference and dll physical file reference.

I. Strict reference of project references. The project file must be included in the solution. The advantage is that it is easy to debug and can directly access the code. The disadvantage is that the coupling degree is too high (it must be fully compiled before it can be run). If the project is too large, compilation is troublesome, which is not conducive to deployment upgrade and testing. Because it is strictly referenced, replacing the dll alone does not work. It is quite troublesome to re-compile, package, uninstall, and install each update.
2. The dll physical file reference is loose and refers to the dll physical file. It doesn't matter if the dll project package is not included in the solution (generally included ), the advantage is that you do not need to re-compile all the files, but the premise is that the dll file must be placed in the referenced path. Otherwise, the compilation will not be updated. The disadvantage is that it is not conducive to debugging, because it is unclear about the program architecture for people with insufficient experience or new people who have just taken over, and the debugging of this method will not automatically enter the code segment, and process debugging must be attached, go to the dll code in advance to open a breakpoint. This method is applicable to large programs with local compilation, which facilitates upgrades, testing, and deployment (you do not need to package, or you can create a package yourself, because you only need to copy physical files ). No matter which type of reference, the referenced dll will be generated under the referenced path. The difference is that the project reference will be updated synchronously, while the dll physical reference will not update the dll under the referenced path, unless your own generated path is the path of the quoter (or clear or regenerate the quoter, but this is not recommended. Generally, the generated path is specified to the quoter path ).

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.