security - How to forbid a .NET DLL class library to be referenced -


how can forbid dll class library referenced in other solutions?

you adding strongnameidentitypermission class library matches strong name of program do want able use with.

alternatively, explore using internalsvisibletoattribute, although may require design changes in library code. should work long neither assembly signed, or both signed strong name. argument specified on attribute should match public key , name of assembly want able access internal members.

but really, stop isn't trying hard use library. won't able add reference, doesn't prevent bypassing through reflection or disassembling code. there ways around security measure implement.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -