Question Loading Assembly

aloker

New member
Joined
Oct 10, 2008
Messages
1
Programming Experience
Beginner
Hi,

The code below loads the Assembly from the Path.
System.Reflection.Assembly.LoadFile("C:\ParshuLayoutValidator\RuleWarning\bin\Debug\RuleWarning.dll")

But I want to load the the assembly without providing the Path Name something like

System.Reflection.Assembly.LoadFile("RuleWarning.dll").

Note: That this is not the Executing Assembly so I cannot use the GetExecutingAssembly().

I also have a code which gets the BaseDirectory from the AppDomain ie. C:\ParshuLayoutValidator\RuleWarning\bin\Debug\.

and then do System.Reflection.Assembly.LoadFile(BaseDirectory & "RuleWarning.dll")

But I think both the code though written differently function the same way. Is it possible to load an assembly without

revealing the whole Path Name?

Thanks
 

Latest posts

Back
Top