将文件添加到包中而不将其添加到VS项目中 [英] Adding files to a package that without adding them to the VS project

查看:81
本文介绍了将文件添加到包中而不将其添加到VS项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够在运行之前将文件添加到VS创建的未打包应用程序(即AppX文件夹),而无需将它们直接添加到项目中。我正在开发一个内容很多的项目,最好不要直接将
内容添加到项目中。当然,一个答案是将文件直接复制到AppX文件夹,但我希望它能够与远程调试一起使用,理想情况下,还可以使用创建包向导。现在,我在构建后的
步骤中覆盖.build.appxrecipe。这种作品。我添加到.appxrecipe的文件被复制到布局文件夹,但它看起来像VS缓存.build.appxrecipe文件 - 我必须手动重启VS才能使用我更新的.appxrecipe。有没有更好的方法来执行此操作,或者使用
来防止.appxrecipe被缓存?

I'd like to be able to add files to the unpackaged app created by VS before Run (that is, the AppX folder) without adding them directly to the project. I'm working on a project that has a lot of content, and it would be preferable to not have to add the content to the project directly. One answer is, of course, just copying the files directly to the AppX folder, but I'd like it to work with Remote Debugging and, ideally, the Create Package Wizard. Right now, I'm overwriting .build.appxrecipe in a post-build step. This sort of works. The files I add to .appxrecipe get copied to the layout folder, but it looks like VS caches the .build.appxrecipe file--I have to manually restart VS for it to use my updated .appxrecipe. Is there a better way to do this, or a way to prevent .appxrecipe from being cached?

推荐答案

您是否要添加它?到AppX文件夹或部署的文件夹?

Are you looking to add it to the AppX folder or the deployed folder?


这篇关于将文件添加到包中而不将其添加到VS项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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