How to avoid downloading resources and dll files when degugging in VS03?

  • Thread starter Thread starter Robert
  • Start date Start date
R

Robert

My app uses lot of GIFs and some third party DLLs. Every time I run code in
debug mode on device, the IDE dowload the GIFs and DLLs to the device event
though nothing has changed in them and thay are already on device. I checked
all the setting in IDE and could not find way to stop this. Is there a way
to stop this? It wastes me lot of time in waiting these redaundant
downloading!

Thanks in advance!

Robert
 
Robert,

In Solution Explorer, locate your set of files then right-click and click on
Properties. Change Build Action from Content to None and that will prevent
the download to the device each time.

Regards,
Neville Lang
 
....and in VS2005 change the "Copy to output directory" property to "Copy if
newer".

Cheers
Daniel
 
That makes sense! Thanks Neville!

Then, my next question is:

If I debug or deploy on a new device, do I need to change it back to
Content? Setting to None seems to me it is not being downloaded.

Thanks again!
 
Robert,

Debug and Deployment are essentially two different operations. While you are
in the IDE developing your app and you require Debug mode for testing on a
new device then, yes, you need to first ensure that your files are first set
to Content for the initial download. After they have been downloaded once to
a new device then you can change these files to None.

Deployment is a different action in the sense that it means to deploy to
other people's devices after you have completed the app. For these cases,
you need to create a CAB file for deployment and maybe a MSI file containing
the CAB file if you want. When the CAB file is being created, it does not
depend on the Build Action setting of the IDE but depends on the information
contained in the associated INF file, where you would have your files
listed. So, under this scenario, having the Build Action set to None does
not inhibit general deployment to other people's devices.

Regards,
Neville Lang
 
Back
Top