Click here to Skip to main content
15,918,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello
How to add file to DLL runtime c# ?

I have a DLL . I need to add many file (for example image) to my DLL runtime .

How do I this ?
Thank for your help
Posted

1 solution

Hi frnd!!


Assembly.load(string) expects the assembly name

Assembly.Load("SampleAssembly, Version=1.0.2004.0, Culture=neutral, PublicKeyToken=8744b20f8da049e3");


then Read this article:

http://blogs.msdn.com/b/suzcook/archive/2003/05/29/57143.aspx[^]

and also
http://stackoverflow.com/questions/4711226/add-dll-programatically-at-run-time[^]

Sysntax:

AssemblyName an = AssemblyName.GetAssemblyName(filePath);
Assembly.Load(an);



regards
sarva
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900