assemblies...

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!
 
M

Mattias Sjögren

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
 
A

Azerty123

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top