Use VS2005 to Copy DLL to specific folder

  • Thread starter Thread starter davis
  • Start date Start date
D

davis

Hi, when I deploy to PocketPc I have some deps on .dll files. I can,
of course, specify in VS2005 to "Copy If Newer" -- but it always
copies with the same directory structure.

Example, if my project has:

src
|-somefile.cs
lib
|-somelib.dll

And I specify "Copy If Newer" on somelib.dll - it copies it to the
pocketpc underneath a lib directory. This is not what I want. I want
it copied to a specific place on the PocketPc, and I cannot see how to
do this with VS2005.

Any ideas?

Thx in advance,
Davis
 
You can only specific the output directory at the project level, not the
project item level. If you require items in your project to be deployed to
different locations, then you can write a script that uses RAPI to deploy
the items and run that script in your post-build event handler.

If the dependency libraries are to be commonly accessible by a number of
applications, then you should consider installing the dependencies into the
Global Assembly Cache on the device.

--
Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC.

http://www.opennetcf.com/
 
Back
Top