How to protect .net class libraries so that other applications do not refer to them?

How can I protect the .net class library project and the resulting dll so that other applications (.net projects) do not refer to it, except for those projects that were in my own solution?

+3
source share
4 answers

I think you cannot prevent other applications from linking to your library.
You can make library classes internal and give them access through the InternalVisibleTo attribute , but it will not save you from reflection.

+8
source

, . , , , exe . , (. )

+2

, , ? dll, .

, internal,

+1

, , DLL .

+1
source

Source: https://habr.com/ru/post/1696632/


All Articles