.NET CF 1.0 在Vista上兼容性问题的解决方法

随着Vista 发布日期的临近,Windows Mobile开发者已经开始尝试在Vista上用Visual Studio编写移动应用。
虽然微软已经在Vista中集成了.NET CF 2.0, 但许多开发者仍需要维护基于原来.NET CF 1.0版本的应用程序。如何解决.NET CF 1.0 在Vista上的兼容性问题,微软MED部门项目经理MelSam给出了解决的方法

  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.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值