How can I protect my Assembly from using any other?

how can I protect my assembly, because as soon as I distribute the installation, the assembly will also be deployed, and there is a chance that the user will receive the assembly from Program Files and can add a link to any other project or create a new project on its basis! any solution or help would be appreciated.

+3
source share
6 answers

You can make all members within the assembly internal and allow others to use its InternalsVisibleToAttribute . But if someone is persistent enough, there is no way to stop them from being used.

+4

, , 100 % . , , -.

+2

. , .

obfuscar. .

+2

. . [1], ( ), - ( ) .

[1] -, .

+1

ILmerge , ( .NET , ).

0

, , - - - , DLL , .

AppDomain.CurrentDomain.AssemblyResolve , - DLL, , DLL.

.

, , DLL , , , . DLL.

0
source

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


All Articles