I have multiple .net core projects. My project structure is multiple independent library projects each is having different nuget package references and a main web project is having reference to these library projects.
My problem here is in my main web project i have to give the same nuget references again. if i have not given nuget references i am getting error. Is there any way i could just refer library not the nuget package reference in web project? Is there anyway just adding libraries should automatically import nuget references? How can i avoid adding the same nuget references in main project?
============================================================== I think my above question was not clear let me put this with an example
Solution1
LibProject1 ->Nuget1Reference ->Nuget2Reference
LibProject2 ->Nuget3RefernceSolution2
->Lib1ProjectReference
->Lib2ProjectReference
In this structure Solution2 project is getting runtime error as it is missing nuget libraries. I have to explicitly give the same Nuget reference in Solution2 which i have already given in my library solution. How can I avoid giving the reference again in my solution2. It should have automatically get all the referenced libraries from both lib1 and lib2 to my solution2.