Does your dll have any real Editor code in it? If not that might be why Unity is including it anyway (which is weird). A fix might be to add the AssemblyIsEditorAssembly attribute.
If your editor code was being compiled your game would not build. Unity swaps your assemblies when you go to build. This includes removing the editor assembly. You can test this out by including the Unity Editor namespace at the top of one of your runtime classes