Problem:
The basic library written in Project A includes common database access methods, common page methods, and other commonly used excel generation methods, which have been generated successfully,
If you want to use it directly in Project B, the reference is unsuccessful, and the final solution is solved. The reference is successful. Note the following:
Cause of failure 1: The vs versions of the two projects must be consistent. Project A is vs2010, and Project B is vs2005. As A result, the consistent reference of Project B is unsuccessful,
Solution 1: Upgrade Project B to vs2010, open it with vs2010, set the properties of the website project or application project, and select. net framework 4.0.
Cause of failure 2 and solution: the dll of Project A must be the latest version. After the file is regenerated, copy the dll to the Project B file, and then add the latest reference after Project B is removed.
3: After the reference is generated successfully, the method details can be tracked in Project B's F11 to project A. If the tracing fails, there is A problem.