Don't want dll to be copied to device all the time..

P

PeterB

I have a reference to an own made dll in my application. When I debug the
dll is copied over to the device/emulator each time. Since it is, or atleast
will be, quite large, and won't change often I don't want it copied each
time. The common CF dlls like system.dll isn't copied each time, how do I
"register" my dll in the same manner?

regards,

Peter

PS Maybe I could advertise my previous post "SP2 and PPC 2003 Emulator -
Error when starting app." posted 2003-09-22, which I am in desperate need
for some help on. DS
 
N

Neville Lang

Peter,

In VS .NET 2003, you have control over what files are downloaded to the
device or emulator. In the Solution Explorer, I assume you have your DLL
listed with the Project files. Right -click on the DLL entry in the list,
then click on its Properties and then change Build Action from Content to
None. This will prevent downloading the file each time. When you do modify
the DLL, simply change that setting back temporarily.

With regards to starting the emulator, although I have not updated my system
to SP2 yet, I have found it "normal" that the 2002 emulator always fails on
its first startup. I simply Build/Deploy the project again, and all is well
from then on. This might be the same for the 2003 emulator as well.

Regards,
Neville Lang
 
P

PeterB

Thanks for your reply Neville!

Unfortunately I don't think you understood me correctly ( or vice verse). I
only have an added reference to the dll in my solution explorer. It is not
added as a plain file, as you would do with a resource like a picture for
example. In the list of references I also have the references to the basic
Compact Framework system dlls, but these are ofc never copied (since they
exist on the device already).

Do I need to "install" the dll on the device, just like you do with the
compact framework or how do you do if you want to use a dll without copying
it to the device each time?

br,

Peter
 
P

PeterB

Forgot to answer your second reply :)

The problem I refer to in the post "SP2 and PPC 2003 Emulator - Error when
starting app." is not that the emulator isn't starting. In fact, the subject
is pretty misguiding since I made a reply to that post giving some more
information about the problem after I unsterstood some more of it.

The whole issue in the post is that a simple dll (the same we are discussing
in this post) causes a major error when SP2 is installed. It happens for
PPC2002, PPC2003 and on both device and emulator. So the only correct
information in the subject is "SP2 -error when starting app" ;-)

/ Peter
 

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