Home All Groups Group Topic Archive Search About

Assembly Minimum Security Requirements

Author
20 Nov 2006 9:23 PM
Giovanni
Hi,

     Using VS 2005 Pro., I have built a Class Library (DLL) with several
functions, subs, etc...  I would like to determine the minimum security
requirements.  For some reason, the "Security" tab does NOT appear when
designing Class Libraries (DLL's), therefore, I cannot use the "Calculate
Permissions" button.  I tried using PERMCALC.exe, but the resulting .XML file
is quite involved and hard to decipher.  It has many "demands" nodes
throughout and thus extremely time consuming to go through.  Is there any way
quickly determine .DLL security permission requirements (minimum), or somehow
"attach" the XML file generated by PERMCALC.exe to the assembly/DLL in
question?  There must be an easier way than going through thousands of lines
of code trying to find a security "Demand".

     Regards,

          Giovanni

Author
23 Nov 2006 5:49 PM
Nicole Calinoiu
Have you considered temporarily switching the project's output type to a
console application so that you can use the properties security tab?


Show quoteHide quote
"Giovanni" <Giova***@discussions.microsoft.com> wrote in message
news:0983BE79-6E50-4DD9-A912-7F648B6EF890@microsoft.com...
> Hi,
>
>     Using VS 2005 Pro., I have built a Class Library (DLL) with several
> functions, subs, etc...  I would like to determine the minimum security
> requirements.  For some reason, the "Security" tab does NOT appear when
> designing Class Libraries (DLL's), therefore, I cannot use the "Calculate
> Permissions" button.  I tried using PERMCALC.exe, but the resulting .XML
> file
> is quite involved and hard to decipher.  It has many "demands" nodes
> throughout and thus extremely time consuming to go through.  Is there any
> way
> quickly determine .DLL security permission requirements (minimum), or
> somehow
> "attach" the XML file generated by PERMCALC.exe to the assembly/DLL in
> question?  There must be an easier way than going through thousands of
> lines
> of code trying to find a security "Demand".
>
>     Regards,
>
>          Giovanni