How can I forbid dll class library to be referenced in other solutions?
You can embed you DLL into your EXE via setting the "Build Action"-Property to "Embedded ressource". Your DLL is not shipped as a single file and no one can use it.