构建智能设备项目
模拟器状态
l 关闭模拟器
Ø 清除状态
Ø 下一次运行时需重新配置
l 保存模拟器状态
Ø Compact Framework
Ø SQL CE
Ø Applications
Ø Settings
l

| Eventually, you will be done debugging and decide need to close the emulator. Upon closing, the emulator will prompt you with a question regarding how you want to close the emulator. The two options, Turn off Emulator and Save Emulator State, have very different behavior.
| Choosing Turn off Emulator will result in a loss of all changes made to the emulator. The next time the emulator is run, you will need to redo any configuration options, like network or registry, and redeploy any application binaries you need on the device. Visual Studio will automatically deploy any assemblies that your application needs if it does not find them on the device, but this can take a significant amount of time if your application uses many external libraries.
| Saving Emulator State causes the emulator to persist an image of itself on your development machine before shutting down. The next time your start the emulator, it will boot up from this image instead of from the default “clean slate” image. This results in much faster application deployments during debugging, because the dependent assemblies are still on the device from the last deployment. However, saving state can make it very difficult to debug code that expects a clean slate. For example, if you want to debug code that creates resources like files, databases, or registry keys, you will need to turn off the emulator without saving state so that you can test these routines on a “fresh” device.