I doubt that this is the best way, but...

        if (Assembly.GetExecutingAssembly().Location.EndsWith(".dll"))
            Console.WriteLine("Dll");
        else
            Console.WriteLine("exe");





On 1/4/06, Jekke Bladt <[EMAIL PROTECTED]> wrote:
> All--
>
> Is there a straightforward way to determine from an Assembly object
> whether it is an executable or a library?
>
> TIA
>
> --Jekke
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>


--
______________________________
- David Lanouette
- [EMAIL PROTECTED]

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to