Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to link images to DLL

Status
Not open for further replies.

dmsruthi

Programmer
Aug 17, 2005
19
US
Hi,
Ive an windows application and Ive lot of images,

I am using Nant Build scripts to create DLL,

but I dont know How to link Images to DLL.


Thanks
 
Typically, from Visual Studio, you would add existing item to your project and set it as an embedded resource.

I would google nant build embedded resource C# and see what you can come up with.

Keep in mind though, that in order to retrieve those images you have to use the ManifestResource methods.
 
hey I found the solution

anyway thanks a lot
 
Like this I am adding image resources to DLL

<resources prefix="XYZ" dynamicprefix="true">
<include name="**.resx" />
<include name="**.gif" />
<include name="**.ico" />
</resources>

I tested it n its working fine.


Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top