Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am having 3 projects(.net core 1.1) in my solution.

Project Solution
--> Console application (.net core 1.1)
--> Class library 1(.net core 1.1)
--> Class library 2 (.net core 1.1)

"console application" have 2 project reference [I can add both reference without any issues]
-->Class library 1
--> Class library 2

But

"Class library 1" has dependency with "Class library 2" and I can add reference but still "class library 1 class's" could not identify the class library2 class.

showing error message as "The type and namespace assembly class library2 could not find" so kindly help to solve

Note:1) all project versions are .net core 1.1 and access modifier also I checked . no issues.
2) Added reference as this way [Project-->right click-->add reference --> class library 2]
Kindly suggest me any other way to add ref in .net core

What I have tried:

// Class lib 1
using ClassLibrary2; // error in ClassLibrary2. but I can add reference
namespace ClassLibrary1
{
    public interface IClass
    {
     string method1(Class2 obj); // Error in Class2
    }
}


namespace ClassLibrary2
{
    public class Class2
    {
     /// some code
    }
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900