vs2005创建OSDesign项目,WinCE6
1.解决方案管理器,项目鼠标右键属性
默认语言设置
编译选项
2.主菜单:Target->Connectivity Options
Add Device/Remove Device不用管
Kernel Service Map
Core Service Settings默认
Service Status默认
Apply->Close
3.Catelog Items View
3.1 Applications - End User
勾选CAB File Installer/Uninstaller,Terminal Emulator
3.2 Applications and Services Development
取消勾选.NET Compact Framework2.0,勾选使用.NET Compact Framework 3.5,Active Template Library(ATL)
因为是模拟器,网络上LAN,PAN,WAN都不勾选
3.3 MSPY(中文输入法)
勾上Multilingual User Interface (MUI)
4.生成
主菜单Target->Attach Device
制作SDK
在解决方案管理器SDKs右键And New SDK
Required files may be missing. To resolve the issue, reinstall Platform Builder.
解决方法:
新建C# Console Application,项目名称GenSdk32,X86编译,引用“C:\Program Files (x86)\Microsoft Platform Builder\6.00\cepb\IdeVS\GenSdk.exe”
using System;
using System.Collections.Generic;
using System.Text;
namespace GenSdk32
{
class Program
{
static void Main(string[] args)
{
Microsoft.PlatformBuilder.Sdk.SdkGenerator.GenSdk.Main(args);
}
}
}
Release下GenSdk32.exe拷贝到“C:\Program Files (x86)\Microsoft Platform Builder\6.00\cepb\IdeVS”目录下,回到OSDesign项目下,生成->"Open Release Directory In Build Window",输入如下命令“"C:\Program Files (x86)\Microsoft Platform Builder\6.00\cepb\IdeVS\GenSdk32.exe" "E:\DEV\WinCE6\WinCE6\SDKs\SDK1\obj\BuildSDK1.xml”
执行成功提示: