How can we say one exe is developed in .net Compatible languages or not?

Questions by srinivaasu

Showing Answers 1 - 21 of 21 Answers

Jayaprakash

  • Nov 17th, 2006
 

There will be a config file appname.exe.config.

  Was this answer useful?  Yes

Srinivas

  • Nov 20th, 2006
 

Dear Jayaprakash,

         I think without  appname.exe.config. also we can build the forms. According to my knowledge this file is not mondatory to be explicitly invoke then how can we say one application is developed in .net compatible languge. In other words how can we say the application is developed in Managed way and not is UnManaged way. So Please clarify me in this regard.

Regards,

Srinivas

  Was this answer useful?  Yes

Paul

  • Nov 24th, 2006
 

I would try to decompile the exe using the ildasm.exe.  If a CLR header is found, the manifest should give the details regarding the application.

  Was this answer useful?  Yes

Khader Hassan Khan M

  • Dec 4th, 2006
 

Its simple, Just run that exe in a machine which do not have .Net framework.

  Was this answer useful?  Yes

Khader Hassan Khan M

  • Dec 28th, 2006
 

try this code,

using System;

using System.Collections.Generic;

using System.Text;

using System.Reflection;

namespace checkingnetproj

{

class Program

{

static void Main(string[] args)

{

string FullPATHofFile;

FullPATHofFile = "<path of the exe or dll>";

try

{

AssemblyName assemblyName = AssemblyName.GetAssemblyName(FullPATHofFile);

Console.WriteLine("{0} - is a .NET assmbly. ", FullPATHofFile);

}

catch (BadImageFormatException)

{

Console.WriteLine("{0} - Not .NET assmbly. ", FullPATHofFile);

}

Console.ReadLine();

}

}

This will help u.

  Was this answer useful?  Yes

shailesh

  • Jan 13th, 2007
 

Every exe is in PE(Portable executable ) form which keeps the information about in which environment it is to be run so if try to run any exe  that is not .NET complaint it will not run.

  Was this answer useful?  Yes

GP

  • Mar 21st, 2007
 

There are two easy methods
1) No programming:
Load the EXE/DLL with ILDASM.exe if it is .Net programed than it will work otherwise it will throw error.
2) Programatically:
Use reflection API to LoadAssembly. It it is not a .Net program it will throw exception.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions