assemblies...

  • Thread starter Thread starter Azerty123
  • Start date Start date
A

Azerty123

Hi,


I understand that adding an assembly to the GAC, will make that assembly
available to other applications.
Is it possible to configure a global assembly only to be available for
software from the same vendor? I don't want others to reference my
assemblies, but I have assemblies used by a number of applications from my
own...


thnx!
 
I don't want others to reference my assemblies,

What harm would that do? You can use CAS to prevent code from calling
into your assembly, but you can't stop anyone from referencing it.

Oh and people generally don't reference assemblies directly in the
GAC, so whether or not you install your assembly in the GAC is
irrelevent here.



Mattias
 
Mattias Sjögren said:
What harm would that do? You can use CAS to prevent code from calling
into your assembly, but you can't stop anyone from referencing it.

Well I don't want others to use my assemblies for free...
I think you mean CodeAccessSecurityAttribute by CAS?
I found a description how to use the
StrongNameIdentityPermissionAttribute... so that's what I need...
Oh and people generally don't reference assemblies directly in the
GAC, so whether or not you install your assembly in the GAC is
irrelevent here.

I know, but private assemblies can also be used in other software as long as
they reside in the same folder...

thnx
 
Back
Top