How can I forbid dll class library to be referenced in other solutions?
You can use something called as StrongNameIdentityPermission to prevent others from referencing your library.