我可以从多设备混合应用程序构建中排除/忽略文件吗? (为了防止在构建时出现EBUSY错误) [英] Can I exclude/ignore files from Multi-Device Hybrid App build? (In order to prevent EBUSY error when building)

查看:141
本文介绍了我可以从多设备混合应用程序构建中排除/忽略文件吗? (为了防止在构建时出现EBUSY错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

构建多设备混合应用程序时出现此错误.

EXEC:错误:繁忙,资源繁忙或锁定'C:\ path \ to \ project \ bld \ Debug \ www \ .svn \ wc.db'

可疑原因:

据我所知,当多设备混合应用程序Visual Studio扩展构建应用程序时,它似乎抢占了项目目录中的所有文件(某些特定文件/文件夹(例如bld/bin目录和.jsproj文件除外) )并将它们添加到包中.可以,但不理想,它实际上只应在VS项目中获取文件.我遇到的问题是因为它抓住了我的SVN .db文件并将其添加到程序包中,TortoiseSVN状态缓存然后选择了该文件并将其锁定-导致我的错误.

这是我的特定问题,但是我相信如果其他人在目录中有其他文件不希望包含在应用程序捆绑包中,则可能会遇到类似的问题.我建议可以通过某种方式设置从构建中排除的文件/文件夹或通过构建脚本不获取所有内容(仅包含Visual Studio项目中包含的那些文件)来解决此问题.我不确定如何提出要求,因此希望开发人员可以看到这篇文章...

所以,我的问题是:是否有人知道告诉多设备混合应用程序Visual Studio扩展构建过程(或vs-mda \ vs-cli)忽略某些文件的方法?文件夹?

或者,有人对如何使SVN和此VS扩展程序玩起来有什么建议吗?

解决方案

不幸的是,Visual Studio包括项目目录下除bin \ bld文件夹之外的所有文件.当前,唯一简单的解决方法是将要从包中排除的文件保留在项目目录之外.您可以使用添加->现有项->添加为链接,将文件添加到解决方案资源管理器中,以防文件出现在解决方案资源管理器中但不包含在构建或打包中.

I'm getting this error when building my Multi-Device Hybrid App.

EXEC : error : EBUSY, resource busy or locked 'C:\path\to\project\bld\Debug\www\.svn\wc.db'

Suspected cause:

From what I can gather, when the Multi-Device Hybrid Apps Visual Studio extension builds the app it seems to grab all files in the project directory (except for some specific files/folders e.g. bld/bin directories and the .jsproj file) and add them to the package. That's ok, but not ideal, it really should only be grabbing the files in the VS project. The problem I'm experiencing is becuase it's grabbing my SVN .db file and adding it to the package, TortoiseSVN status cache then picks up this file and locks it - resulting in my error.

This is my specific issue, but I believe others could experience similar issues if they have any other files in the directory that they don't want included in the app bundle. I'd suggest it could be fixed by somehow setting excluded files/folders from the build or by the build script not grabbing everything, only those files included in the visual studio project. I'm not sure how to request that, so hopefully the developers will see this post...

So, my question is: Does anyone know of any way to tell the Multi-Device Hybrid Apps Visual Studio extension build process (or vs-mda\vs-cli) to ignore certain files or folders?

Or, does anyone have any suggestions as to how to make SVN and this VS extension play nice?

解决方案

Unfortunately Visual Studio includes all the files under project directory except bin\bld folder. Currently only simple workaround would be to keep the files which you want to be excluded from package outside project directory. You can add the file to solution explorer by using Add --> Existing Item --> Add as link in case you want the file to appear in solution explorer but not included for build or packaging.

这篇关于我可以从多设备混合应用程序构建中排除/忽略文件吗? (为了防止在构建时出现EBUSY错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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