If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Dynamic load Assembly from specific path

This works with my assembly being in the same bin path as my app. Now if there is a possibility that the assemblies can be loading from a different path, is there a way i can just change the paramType and load it from a different path without code changes.

If i need to make code changes to do like an Assembly.Load instead, can it support both versions with same code - local load and path load of assembly?

Re: Dynamic load Assembly from specific path

Hi there,

Here is an option that you can apply without any code changes...I assume you wouldn't want to put the assembly into the GAC in which case you would go for the option #2. In essence the reason why it will work in all scenarios is because you can change the configuration in the config file and leave the code as it is. Without the configuration it will work for the assemblies in the bin folder. With the configuration your assembly could be anywhere.

Last edited by nelo; April 6th, 2010 at 05:42 PM.
Reason: Clarification.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.