How can we say one.exe is compatible with .net or not?

Showing Answers 1 - 3 of 3 Answers

Krishna

  • Nov 13th, 2006
 

All dll's and exe's generated by .NET applciations are ASSEMBLIES. To test a .exe whether its a .NET assembly or not , you need to use following code.try{AssemblyName assemblyName = AssemblyName.GetAssemblyName(FullPATHofFile);Console.WriteLine("{0} - is a .NET assmbly. ", FullPATHofFile);}catch(BadImageFormatException ) { Console.WriteLine("{0} - Not .NET assmbly. ", FullPATHofFile); }Source: http://www.krify.com

  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