C
C#2y ago
Bambino

✅ Reference not recognized

Certain references are not recognized there be must be something very basic that I do not understand here.
44 Replies
ero
ero2y ago
well, how are these things referenced?
Bambino
BambinoOP2y ago
Via namespace?
ero
ero2y ago
3000 messages :/ the assembies that contain them
Bambino
BambinoOP2y ago
all ood 😛
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Bambino
BambinoOP2y ago
I have able to reference it throughout the project hrmmm
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Bambino
BambinoOP2y ago
You are making me realize how much I need to learn to even articulate what my issue is. I have a folder named Misc and several class under it.
ero
ero2y ago
with 3000 (???) messages, i assume it's not exactly a small code base
Bambino
BambinoOP2y ago
It is
ero
ero2y ago
the folder doesn't really matter the namespace isn't coupled to the folder structure so if there is simply no namespace called Server.Misc then it won't be found
Bambino
BambinoOP2y ago
GitHub
GitHub - TheBambino/ServUO: An Ultima Online server emulator writte...
An Ultima Online server emulator written in C# .NET - GitHub - TheBambino/ServUO: An Ultima Online server emulator written in C# .NET
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Bambino
BambinoOP2y ago
Bambino
BambinoOP2y ago
No issues here
Angius
Angius2y ago
Can't see any Misc directory inside of Server Nor a Misc file
Bambino
BambinoOP2y ago
GitHub
ServUO/Scripts/Misc at master · TheBambino/ServUO
An Ultima Online server emulator written in C# .NET - ServUO/Scripts/Misc at master · TheBambino/ServUO
Bambino
BambinoOP2y ago
They use the Server namespace
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Bambino
BambinoOP2y ago
it may be broke, I can push the latest if you would like
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Bambino
BambinoOP2y ago
GitHub
ServUO/Titles.cs at master · TheBambino/ServUO
An Ultima Online server emulator written in C# .NET - ServUO/Titles.cs at master · TheBambino/ServUO
ero
ero2y ago
yeah that'd be a class not a namespace
Bambino
BambinoOP2y ago
Bambino
BambinoOP2y ago
Ahhh
ero
ero2y ago
you can't add a using directive for a class
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ero
ero2y ago
it's not weird ReallyMad
Bambino
BambinoOP2y ago
Even using Server.Misc doesnt work
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Angius
Angius2y ago
As a side note, although folders do not matter, making sure that namespaces reflect the folder structure does help. Having to look for Server.Misc.SomeClass inside of Scripts is counter-intuitive at best
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Bambino
BambinoOP2y ago
ero
ero2y ago
love the #region on the using directives...
Bambino
BambinoOP2y ago
Why does it work here?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Bambino
BambinoOP2y ago
Holy crap
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Bambino
BambinoOP2y ago
Yes, makes a lot more sense
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Bambino
BambinoOP2y ago
This helps a lot
ero
ero2y ago
seems to me like Misc.Titles.cs isn't meant to go into the Scripts project that project already references the Server project so that'd be a circular dependency cannot work
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Bambino
BambinoOP2y ago
Awesome, thanks yall.
Want results from more Discord servers?
Add your server