Milandi 2006-09-08 02:34:51
I have c++ native app and I use VS2005 beta. My exe is quite a big and
everytime I restart it, it copies whole exe onto device which takes
I got around this problem on emulator by setting emulator shared folder
to point to folder where my exe is. In this case deployment fails
(because it can’t rewrite file over itslef) but I can debug without
copying the binary, which saved me time 😉
I can’t use the same trick with shared folders because wince doesn’t
start binaries over the network.
Is there a way to avoid copying (deployment) so when I restart
debugging I don’t have to wait 10 minutes for same binary to be copied
to device? Is there any trick to avoid copying completly ?
Michael gledhi 2006-09-08 07:56:29
Unfortunately, no, there isn’t a way around this.
This is because VS2005 Beta 2 and RC1 both contain brand new PSU
technology (Pointlessly Slow and Unuseable).
PSU is marvelously implemented in VS2005’s Deploy & Debug
For example, you tell either version of VS2005 to build your app
(Build it, Rebuild it, Rebuild All.. it doesn’t matter which..)
VS2005 then goes off, and chews up every % of CPU available for
a ridiculously long amount of time. Now may be a good time
for a lunchbreak…
Once this has completed (shortly after arriving back from your
lunchbreak), you then hit F5 to Start Debugging it.
At this point, VS2005 should realise that it’s .exe are as up-to-date
as it’s source code files (as previous versions of VS have managed for
many years), and just copy the executables to the device when the
device’s copies aren’t as up-to-date.
But no, thanks to PSU, VS2005 goes off and needlessly *rebuilds*
the executables (time for a dinner break), before Deploying the files
to the device, whether it needed to or not.
Watch this space. One day all software will be this bad.
Unofficial VS2005 fan club
Milandi 2006-09-08 07:59:25
thanks for insights of PSU technology 🙂
Michael gledhi 2006-09-08 14:02:19
Okay, sarcasm aside, does anyone know WHY Visual Studio 2005
(Beta 2 and RC1) both needlessly re-compile the executables ?
This is a bug, isn’t it ?
If I build a Windows Mobile project, run it, close it, then run it
again without making any changes to the source code, there
shouldn’t be any need for VS2005 to go off and recompile
everything, should it…?
Michael gledhi 2006-09-10 01:46:09
( Judging by the strange silence, I guess that Yes, this is a nasty
bug in VS2005 Release Candidate 1. Add it to the list… )
Milandi 2006-09-11 14:57:10
I bought wince5.0 device, and activesync 4.0 supports 2.0 USB so
copying is really fast now.