© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
3 replies
Will Pittenger

✅ Project A sees one class in Project B, but not both (C#)

I have two C# projects. In one, I declare two classes. One just derives from the other and adds some extra fields. The other project needs to use those classes. The dependant project can reference the base class just fine. But not the derived class. For that, VS 2022 Community insists the derived class doesn't exist. What gives? I keep checking the dependancy references. Those are good.

private readonly System.Collections.Generic.SortedDictionary<string, Data.Defs.UserNetwork>
    mapAllNetworksSortedByName = new();

private readonly System.Collections.Generic.SortedDictionary<string, Data.Defs.Network>
    mapAllPredefinedNetworksSortedByName = new();
private readonly System.Collections.Generic.SortedDictionary<string, Data.Defs.UserNetwork>
    mapAllNetworksSortedByName = new();

private readonly System.Collections.Generic.SortedDictionary<string, Data.Defs.Network>
    mapAllPredefinedNetworksSortedByName = new();

namespace BestChat.IRC.Data.Defs
{
    public class UserNetwork : Network
    {
.
.
.
namespace BestChat.IRC.Data.Defs
{
    public class UserNetwork : Network
    {
.
.
.

namespace BestChat.IRC.Data.Defs
{
    public class Network
.
.
.
namespace BestChat.IRC.Data.Defs
{
    public class Network
.
.
.
image.png
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

❔ Make package C private in project A, which inherits project B which uses package C
C#CC# / help
3y ago
❔ build a project in c#
C#CC# / help
3y ago
class constructor in c#
C#CC# / help
12mo ago
✅ Public class in C#
C#CC# / help
13mo ago