Welcome to MSDN Blogs Sign in | Join | Help

MelSam's Blog

Mel Sampat on Windows Mobile
.NET CF 1.0 development on Vista

I've been using Windows Vista Beta 2 for a few days now. Someone posted a comment on my blog asking how to build a .NET Compact Framework 1.0 application on a Vista machine. It is possible to use Visual Studio 2005 on Vista, but there are a few additional steps if you want to target .NET CF 1.0. Here's how:

  1. In Visual Studio, click File > New Project.
  2. Under Visual C# or Visual Basic, select Smart Device and then the appropriate platform (e.g. Windows Mobile 5.0 Pocket PC, Windows Mobile 5.0 Smartphone etc).
  3. Under Templates, select Device Application (1.0).
  4. Press OK to create the new project.
  5. Try building the solution. You will receive an error message explaining that .NET Framework 1.1 is required to build .NET CF 1.0 applications. This may seem odd because most of us don't see a direct relationship between the desktop framework and compact framework.
  6. Click here to download .NET Framework 1.1. Note that .NET Framework 2.0 is already built into Windows Vista.
  7. When you try to install it, a warning tells you that this product is incompatible with Vista. The warning also mentions installing SP1. We'll do that next. Proceed with the install.
  8. After .NET Framework 1.1 is successfully installed, click here to download SP1. When installing this, you'll again see a similar compatibility warning. Ignore the warning and proceed to finish installing the Service Pack.
  9. Now that you have .NET Framework 1.1 and SP1 installed, you meet the requirements for targeting .NET CF 1.0. Switch back to your project in Visual Studio and build. It should compile, build and deploy without any further errors.
Posted: Monday, May 29, 2006 1:21 PM by MelSam

Comments

glacierLan said:

虽然微软已经在Vista中集成了.NET CF 2.0, 但许多开发者仍需要维护基于原来.NET CF 1.0版本的应用程序。如何解决.NET CF 1.0 在Vista上的兼容性问题,微软MED部门项目经理MelSam给出了解决的方法。
# May 31, 2006 11:16 PM

Triskell2k1 said:

Thanks a lots I have installed vista tomorrow and having the same pb.
Another question do you have installed sdk for WM5? If true no problem (need to install activeSync even if it doesn't work on vista)
And a last one do you achieve to sync your pocket pc with vista?
# June 13, 2006 8:14 AM

swnuwangyun said:

how to build a .NET Compact Framework 1.0 application on a Vista machine

# December 19, 2006 12:20 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker