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.
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
Post a Comment