Search code examples
c#deploymentwindows-mobilecompact-framework

How do I add files to a windows mobile device when deploying it?


I have a number of images and a CSV data file that I want to deploy to a windows mobile device along with my application. I'm using Visual Studio 2008 and C#.

I've added a "Content" folder to my project which contains the bmp images and the CSV file. When running my program on the emulator (by hitting F5) only the app is deployed, and not the "Content" directory.

I know I can add images to the resource file, but that isn't what I want to do - I want the images to actually be available on the device so that they can be changed without having to deploy a new application.

So my question is how can I set it up so that the "Content" directory is copied to the device?

Thanks in advance!


Solution

  • THe files from a "Content" folder will not be deployed on your device.

    In order to deploy a file, right click it -> Properties -> select "Content" from Build Action