c# - Accessing DLLs from different folders even after deploying without dynamic loading -


my windows application resides in path "c:\program files\test" , dlls in different location "c:\program files\thirdpartyapplication". when test application executes, dlls must retrieved third party folder after deploying , local copy should not maintained. can achieved without dynamic loading?

note: dlls gets updated in third party application folder, requirement not build project every time happens.

the following microsoft doc comprehensively answers question , offers 3 different methods.

https://support.microsoft.com/en-gb/help/837908/how-to-load-an-assembly-at-runtime-that-is-located-in-a-folder-that-is

how load assembly @ runtime located in folder not bin folder of application

  • method 1: install assembly in global assembly cache (gac)
  • method 2: use application configuration (.config) file tags
  • method 3: use assemblyresolve event

Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -