This article comes from http://blogs.msdn.com/melsam/archive/2006/05/29/610252.aspx
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:
- In Visual Studio, click File > New Project.
- 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).
- Under Templates, select Device Application (1.0).
- Press OK to create the new project.
- 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.
- Click here to download .NET Framework 1.1. Note that .NET Framework 2.0 is already built into Windows Vista.
- 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.
- 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.
- 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.