不知道怎么使用MS-APPX引用的文件在我的项目(WP8) [英] Don't know how to refer to a file in my project using ms-appx (wp8)

查看:1074
本文介绍了不知道怎么使用MS-APPX引用的文件在我的项目(WP8)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想引用一个语法文件在我的项目(Rootfile->文件夹命名为grammar->命名NumbersGrammar文件),我用这行代码,但它告诉我0x80070002错误(该系统找不到指定的文件)

I want to refer to a grammar file in my project(Rootfile->folder named grammar->the file named NumbersGrammar) I used this line of code but it tells me the 0x80070002 error (the system cannot find the file specified):

乌里数=新的URI(MS-APPX:///Grammar/NumbersGrammar.grxml,UriKind.Absolute);

推荐答案

请确保该文件存在在指定的位置,它的构建操作属性设置为内容

Make sure that the file exists in the specified location, and it's Build Action property is set to Content:

这篇关于不知道怎么使用MS-APPX引用的文件在我的项目(WP8)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆