windows phone 8 Cordova - 将文件放在不同的路径 [英] windows phone 8 Cordova - placing a file in a different path

查看:102
本文介绍了windows phone 8 Cordova - 将文件放在不同的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对VisualStudio非常新,并将一个cordova / phonegap应用程序从android移植到windows phone 8。

I am very new to VisualStudio and porting a cordova/phonegap application from android to windows phone 8.

所以我使用 createTemplates创建了一个新项目。

So I created a new project using createTemplates.bat and imported it in my VS2012 Express.

核心结果是一个 www 文件夹,其中包含 img / css / js index.html ;它工作正常,我设法启动它并部署在我的设备上。

The core result is one www folder containing img/css/js and index.html; it works fine and I manage to launch it and deploy on my device.

由于应用程序是相当大,我想创建一个新的子文件夹调用子文件夹(在img下),并在其中放置 picture.jpg ,因此在solutionExplorer中,我有 img / subfold / picture.jpg ;但我不能使用picture.jpg,而我可以使用它,如果它在 img

Because the application is quite big, I want to create a new sub-folder call subfold (under img), and placing picture.jpg in there so in solutionExplorer I have img/subfold/picture.jpg (even if it is hidden); but I cannot use picture.jpg while I can use it if it's in img.


  • 那?是VS 2012的限制吗?

我100%确定我使用正确的路径。另一个值得注意的事情是,在SolutionExplorer View中,子文件夹及其内容被禁用(见下面的attivita),并且 Build Action属性不存在,并且设置为Content 'if the image is inside img

I am 100% sure that I use the proper path. Another notable thing is that in SolutionExplorer View, the subfolder and its content are disabled (look at "attivita" below) and Build Action property does not exist while it exists and set to 'Content' if the image is inside img

推荐答案

从屏幕截图我可以看到文件夹的图标是ghosted出来的,这意味着文件夹存在文件目录,但不包括在Visual Studio解决方案中。您可以右键单击该文件夹,然后选择将该文件夹包含在解决方案中的选项。您可能还需要通过解决方案资源管理器将文件夹中的每个项目添加到解决方案。

From the screenshot I can see that the icon for the folder is ghosted out, this means that the folder exists in the file directory, but isn't included in the Visual Studio solution. You can right-click on the folder and choose the option to include the folder in the solution. You may also need to add each of the items in the folders to the solution via the Solution Explorer.

这篇关于windows phone 8 Cordova - 将文件放在不同的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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