Using bmp-image files in the PPC Emulator in VS2005

How do you make sure that the bitmap image files gets deployed along with the application, when using the PPC Emulator in VS2005 My file never gets deployed to the application directory. When I open it in the File Explorer it's never there. I added it as a resource in the properties page. I'm programming in C#.

Answer this question

Using bmp-image files in the PPC Emulator in VS2005

  • Dale17677

    There is no "Smart Device CAB Project" in VS2005. There are only 9 types of projects for PPC C#.
  • NathanInNashville

    Have you tried building CAB file You can do this by adding a new projec to you solution of type "Smart Device CAB Project".

    Max



  • orouit

    There should be 3 types of resources.

    There should a "Embedded Resource"

    There should be "deployed/Copied content"

    and then there is non-deployed content which really isn't a type of resource but it's the default action when you add an image to your project and its not added as an actual "image" in the resource file but it's actually a file in solution explorer.

    You should click on the file and see if you have a "Copy to Output Dir" and make sure it is set to one of the copy otpions. Also make sure it is set to "content" (assuming you want it deployed as a physical file).

    Hope this helps.


  • Rachita

    I got it to work. I added it to Resources, rightclicked on the file, properties, copy to output directory and selected "Copy if newer" instead of "Do not copy".
  • testqh

    "Smart Device CAB Project" is located under "Other Project Types"->"Setup and deployment", but solution proposed by Marc is actually simplier and better.

    Max



  • Using bmp-image files in the PPC Emulator in VS2005