MultiConnectMultiConnectDocs Website home
MultiConnectSDK › Export to .NET

5. Copy your scripts

Your server needs its own copy of your server scripts.

  1. In Unity, choose Assets > MultiConnect > ExportScriptsForDotnet.
  2. Select the folder holding your server scripts.
  3. Select your .NET project's folder.

It copies every .cs and .dll file in that folder, keeping its structure, and opens the result. Keep client-only scripts out of that folder, because they will not compile on .NET.

To avoid copying, keep the shared scripts in one folder, and add this line inside an <ItemGroup> of your project file from Script 6.1, using your own path:

Script 5.1: Shared scripts in the project file

<Compile Include="..\MyGame\Assets\Scripts\Server\**\*.cs" />