Search code examples
.netimagebuildgdi+buildaction

Build Action for large set of images?


I'm in Visual Studio 2008 and I have a project that loads lots of images. I want the images to be deployed to the local instance of the software running. The trouble is that I tried using the images as a resource, but there are apparently too many(200 to 300) because I get strange build errors like GDI+ exceptions and Out of Memory Exceptions. This got me to thinking: "Maybe I'm going about it wrong?" What should I be doing for my large set of images? Thanks!


Solution

  • The solution was to simply add a new folder to my project, add existing items to the folder, and then highlight the images and set the build action to compile. This seems to work in Debug mode. I haven't actually tried to release the project yet.