export unity game as .net framework dll

Hello. Given a project in Unity, is it possible to compile this project in a .dll to be used as a library in other projects ?

The goal is to have a game-server which also imports client-logic. One way of doing this is isolating all game logic in a .net standard solution which will be imported by both unity and server but that has other problems like requiring devs to re-build this logic and re-import as a plugin etc.

Was wondering if there was a way to export the game dll in a way the server could import the game client. I know i can import Unity itself but did not managed to do that with the game.

Does any1 knows something about this ?

Do u know if it is possible?