VS2005 always deploys framework files
I am developing an application for SmartPhone 2003 using VS2005.
When deploying the application VS always copies the standard framework files (System.dll, etc) to the target application directory even though these are already in the GAC. The app runs fine on the GAC files if the files in the app directory are deleted. Any way to stop this download (to save time and space on the target machine, especially if multiple apps are under test)?
I am using VS2005 version 8.0.50215.44 (the beta 2 release)
I am running on a Motorola MPx200 w/ Smartphone2003 ver 4.20.0 (build 13349)
It doesn't appear to be happing on the emulator, based on the output window log. However, w/o a file manager on the emulator I can't be 100% sure. (Is there a way to view files on the emulator?).
You can use the Device Emulator Manager to virtually cradle the emulator. Then, you will be able to use the ActiveSync file explorer after going through ActiveSync's "Get Connected" wizard. Make sure to disconnect your physical device from your desktop before doing this as ActiveSync only support one connected device at a time.
One thing you may try with the device is to clear it completly. The installation of the Compact Framework might have become corrupted in some way.
Unfortunaly, in the Beta2 release, there was a bug with Managed Projects that uses the Compact Framework 1.0 where cmtnpt_TcpAcceptNA.dll is always deployed to both the emulator and to devices. You might want to switch to a newer build.
Hello,
I have the same problem but I can't use the Device Emulator because I'm working with Symbol dll's written to manage a Symbol device.
So, each time I want to try my application, VS deploy all dll's (System.dll, System.Drawing.dll etc.). It takes several minutes with my serial connection. How could I ask VS not to copy dll's that already exist ?
Thanks for help
PS : I'm working with VS2005 beta 2, ActiveSync 4.0 and a Symbol PDT8100 running on Windows Mobile 2003. I already tried to clear my pocket pc memory and reinstall CF 2.0.
We had some definite bugs in deployment in Beta 2 where files were getting copied down unecessarily. Since you're developing for Smartphone 2003, you'll be using v1 of the framework, and that specifically did have some re-deploy problems. We've fixed it in later builds.
Thanks for using Beta 2!
Neil
If you look in the solution explorer (applies to VS2003 as well) then you will see the references (You will probably need to do show all files, before they appear) then you can click on each one. What you will find is that "Copy Local" is set to true. Change this to False and it will stop doing it.