Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to identify that a given exe is manage code

How to identify that a given exe is manage code

Scheduled Pinned Locked Moved C#
tutorialannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shiby
    wrote on last edited by
    #1

    How to identify that a given exe is manage code also if the given exe is manage then how to find its version. Regards, Shiby

    L 1 Reply Last reply
    0
    • S Shiby

      How to identify that a given exe is manage code also if the given exe is manage then how to find its version. Regards, Shiby

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      bool managed = true;
      try
      {
      Console.WriteLine(Assembly.Load("some.exe").Version);
      }
      catch
      {
      managed = false;
      }

      xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots

      J 1 Reply Last reply
      0
      • L leppie

        bool managed = true;
        try
        {
        Console.WriteLine(Assembly.Load("some.exe").Version);
        }
        catch
        {
        managed = false;
        }

        xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots

        J Offline
        J Offline
        Judah Gabriel Himango
        wrote on last edited by
        #3

        I think that would be Assembly.Load("some.exe").GetName().Version.

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: He has a funny face. And he's my son. Judah Himango

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups