我有一个便携式 windows ce 设备。我正在编写一个应用程序来使用 RAPI 将文件从 windows 7 复制到 windows ce。这是我使用的代码。
Mobile.Device.CopyFileToDevice(@"C:\Users\username\AppData\Local\Temp\AssetList.xml”, @“\Flash Disk\AMM\AssetList.xml”);
路径和文件都存在。当它到达那行代码时,它会抛出一个错误
"object reference not set to an instance of an object".
当我在设备上查看时,会使用 0 kb 创建 AssetList.xml。请帮忙。