Xap包装失败.你调用的对象是空的 [英] Xap packaging failed. Object reference not set to an instance of an object
问题描述
当我尝试构建Windows Phone应用时,我在PC上收到此错误消息:
I'm getting this error message on my PC when I try to build my Windows Phone app:
Xap packaging failed. Object reference not set to an instance of an object
我正在使用Dropbox.在我的笔记本电脑上,它工作正常,可以调试等...但是在我的PC上,我不能.
I'm using Dropbox. On my laptop, It works perfectly fine and I can debug etc...On my PC however, I can't.
我尝试了很多事情,例如:
I tried many things such as:
- 删除 obj/Debug 文件夹
- 检查解决方案资源管理器 中缺少的文件
- Delete obj/Debug Folder
- Check for files which are missing on the Solution Explorer
到目前为止,没有任何帮助.
So far, nothing has helped.
有什么主意我可以解决这个问题吗?
Any idea how I can fix this?
推荐答案
您应该在项目的每个文件夹中检查文件是否丢失或引用错误.
You should check, in every folder of your project, for missing files or wrong references.
如果将其 Build Action 属性设置为Content
或类似的值,则只需丢失一张图像就可以解决此问题.
You can get this problem just with a single missing image, if its Build Action property is set to Content
or similar...
检查文件,然后重建您的项目!
Check your files and then Rebuild your project!
这篇关于Xap包装失败.你调用的对象是空的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!