How to copy files to progam directory

G

GW

Hi, I am trying to deploy an application from VS2005
to PPC 2003 emulator. I have set the Copy Always
in File properties for all files i would like to be copied
to my target directory on PPC 2003 emulator along
with my exes and dlls but have noticed that the files
are not being copied when i view the directory
in PPC File explorer. Is there anything else that affects this.

Thanks
 
T

Tim Wilson

To copy an item to the target output folder (on the device/emulator) when
the project output is deployed, you can set the "Build Action" of the item
to "Content" and the "Copy to Output Directory" to "Copy if newer" or "Copy
always".
 
W

Will Chapman

Tim said:
To copy an item to the target output folder (on the device/emulator) when
the project output is deployed, you can set the "Build Action" of the item
to "Content" and the "Copy to Output Directory" to "Copy if newer" or "Copy
always".
.....and is there a way to direct a file to another
folder of choice? (Other than a sub-directory of Program).

Thanks....


Will Chapman
 
T

Tim Wilson

You mean to send one particular item to a different folder, on the
device/emulator, other than the target output folder? Not that I'm aware of.
The files that are marked to be deployed with the project are sent to the
same folder as the exe/dll.
 
W

Will Chapman

Tim said:
You mean to send one particular item to a different folder, on the
device/emulator, other than the target output folder?

Yes. During development I often use files containing test data and it
would be useful to be able to deploy them to any folder.
Not that I'm aware of.
The files that are marked to be deployed with the project are sent to the
same folder as the exe/dll.

The only option at the moment is to create a folder in Solution Explorer
and then place the file (Item) in that folder and give it Content and Copy
if Newer properties. On deployment the folder and contents are copied to
the device under Programs\App.

Usefuk but not the sort of full control I would expect to find
in VS2005.

Cheers...

Will Chapman
 
G

GW

Thanks guys, one issue though. THe idea behind creating a
folder in solution explorer and dropping the file in that
and then that folder and file is copied is fine when i want
that to happen. But i like to create a folder called DLL
for my EVC dll's but in this case i don't want a folder
DLL to be created. How can i get the tool to copy the
dll's into my output folder not outputfolder\DLL?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top