In VS 2003, how to suppress a deployment of .NET CF 1.0 every time I debug it?

I (unfortunately) use VS 2003 for development for some Windows CE.NET 4.1 mobile devices. The application is written in the .NET Compact Framework 1.0 (the OS cannot support a later version of .NET CF).

Whenever I run my application from Visual Studio, it copies / tries to install .NET CF 1.0 on my device:

Copying netcf.all.wce4.armv4t.cab 

It takes a lot of time to copy, and then, finally, the device asks me if I want to reinstall (I always say no).

Since it takes a lot of time to copy, I would ideally want VS 2003 to instruct not to copy the file every time I click "debug". Is there a way to change my deployment settings this way?

Thanks!!

+6
compact-framework visual-studio-2003
source share
2 answers

I don't have Studio '03 installed on anything more, but let's see if it works like '08.

First look at the project properties. In the "Devices" section, see if there is a checkbox that says something like "Deploy the latest version of the COmpact Framework."

If not, then we can try backing up if it uses the same mechanism that '08 uses for deployment (and I think it could be). Try the following:

  • Shutting down all instances of Studio
  • Back up% LOCALAPPDATA% \ Microsoft \ CoreCon \ 1.0 \ Microsoft.NetCF.1.0.xsl
  • Now delete this file or open it and comment out the FILES in FILECONTAINER that click on the framework.

You may need to do the same in the All Users profile folder.

Again, make sure that you back up these files before editing.

+5
source share

Right-click on your project (in the Explorer window) and select "Settings", then go to the "Devices" tab. Uncheck "Deploy the latest version of the .NET Compact Framework, etc. Etc.".

+1
source share

All Articles