Forum C# "Common" library dll not possible on server?

"Common" library dll not possible on server?

Postby jasonMcIntosh » November 20th, 2011, 8:30 pm

Hi,

I want to have some code that is shared between client and server live in a C# DLL that both solutions can share. This way, I can just reference the DLL from both the client and server and not have to duplicate code.

But when I run the server, it gives me this error:

Code: Select all
Checking if Common.dll is a game dll (from application directory)
- error: Could not find any Player.IO room types [RoomType(...)] in the dll.


I think this means we can't use any DLLs unless they contain room code?

What is the reasoning for such a drastic limitation? If you are already whitelisting classes for security, why shouldn't we be able to have code libraries which don't contain room types?

Cheers,
Jason McIntosh
Otherwhere Gameworks
jasonMcIntosh
 
Posts: 81
Joined: February 25th, 2011, 4:51 am

Re: "Common" library dll not possible on server?

Postby Oliver » January 2nd, 2012, 10:25 am

Hey Jason,

Currently we only support a single dll per game -- but that is something we're looking into expanding for this sort of use case.

For now, the best option is to complete the extra cs files into both the client and server projects. Just because it's shared code does not mean it has to go into seperate dedicated .dll.

Best,
Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: "Common" library dll not possible on server?

Postby jasonMcIntosh » January 6th, 2012, 6:04 am

That's a fair compromise.

Cheers,
Jason McIntosh
Otherwhere Gameworks
jasonMcIntosh
 
Posts: 81
Joined: February 25th, 2011, 4:51 am


Return to C#