Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can a .net class libraries be protected so it cant be referenced by other applications?

How can a .net class library project and resulting dll be protected so it cant be referenced by other applications (.net projects) except those projects in my own solution?

like image 303
Dean Bates Avatar asked Dec 18 '22 10:12

Dean Bates


1 Answers

I think you can't forbid other applications to reference you library.
You can make library's classes internal and provide access to them via InternalVisibleTo attribute but it won't save you from reflection.

like image 112
aku Avatar answered Dec 24 '22 02:12

aku