© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
34 replies
kT

❔ Accessing class library objects from shared project

I have one solution (.sln) which consists of 2 projects:
1) Class Library project
2) Shared project.

I have some Repository class in the Class Library project. In the Shared project, I want to refer to this repository type but it is not possible to add a class library project reference to Shared project. How can I access repository class in my shared project then?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Accessing variable from another class
C#CC# / help
3y ago
Options pattern in a shared class library
C#CC# / help
2y ago
❔ class library project wont find resources
C#CC# / help
4y ago