C
C#•3y ago
Bobby Bob

How to access a type from a different project in the same solution? (Rider) [Answered]

Take a look a the image. The left file is Class1.cs and the right file is Author.cs. How can I make it such that Class1.cs is able to access the Author class within Author.cs that resides in a different project?
8 Replies
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Pobiega
Pobiega•3y ago
your PublisherData project will need a project reference to ProjectDomain then you can just use the namespace and you're done
Bobby Bob
Bobby BobOP•3y ago
How do I add a project reference?
Pobiega
Pobiega•3y ago
what IDE are you using?
Bobby Bob
Bobby BobOP•3y ago
Rider
Pobiega
Pobiega•3y ago
right click your "dependencies" under projectdata should be in the context menu there
Bobby Bob
Bobby BobOP•3y ago
😮 ! Damn that's pretty cool Thank you so much! That worked!
Accord
Accord•3y ago
✅ This post has been marked as answered!

Did you find this page helpful?