0

I need to check if an assembly is loaded when running my code.

I need to check if an assembly is loaded when running my code and to convert it to bool because if the users doesn´t have the .dll installed the application crashes. I need something like that:

if ( // assembly is loaded = true )
{
    //run something
}
Johnny
  • 8,939
  • 2
  • 28
  • 33
Mikel Miras
  • 57
  • 1
  • 5
  • One of these 2 could help you? https://learn.microsoft.com/en-us/dotnet/api/system.appdomain.assemblyload?view=netframework-4.7.2 or https://learn.microsoft.com/en-us/dotnet/api/system.appdomain.assemblyresolve?view=netframework-4.7.2 – Johnny Feb 08 '19 at 17:04
  • Possible duplicate of [How do you loop through currently loaded assemblies?](https://stackoverflow.com/questions/383686/how-do-you-loop-through-currently-loaded-assemblies) – FlashOver Feb 08 '19 at 23:38

0 Answers0