Home > Blockchain >  How to add references in dot net project
How to add references in dot net project

Time:03-04

I have a simple project mentioned below. Can somebody tell me how can I reference my classLibrary1 in classLibrary2, I right-clicked and tried adding reference but that isn't working since I am not able to use the method of classLibrary2 in classLibrary1 (I am inheriting the class of classLibrary1 in classLibrary2 as well)

Why am I not able to see the References folder in classLibrary1 and classLibrary2?

enter image description here enter image description here

As we can see, the Class Library (.Net Framework) has a References file, but the Class Library does not.

You can right-click on the project and choose Add->Reference to add a reference include the projects in the solution explorer. enter image description here enter image description here

CodePudding user response:

This question has already been answered here.

You can look also in Visual Studio docs here

  • Related