是否可以将 Windows Phone 8 商店测试套件与自定义构建配置一起使用? [英] Possible to use the Windows Phone 8 Store Test Kit with Custom Build Configurations?

查看:16
本文介绍了是否可以将 Windows Phone 8 商店测试套件与自定义构建配置一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 V.S. 中有一个自定义构建配置设置.2012 Win Phone 8 解决方案(除调试和发布之外的不同配置)并且正在使用 SQLite(无法针对 AnyCPU 平台构建)并且无法找到运行测试套件的方法,因为它坚持发布 + AnyCPU"构建.将实际输出文件夹的内容复制到Bin\Release"似乎不能满足测试套件(也没有将项目文件中的输出文件夹设置为Bin\Release"以进行适当的配置),我找不到更改测试套件设置/路径的方法.这是根本不可能的还是我只是遗漏了什么?

I've got a custom build configuration setup in my V.S. 2012 Win Phone 8 solution (distinct Configurations other than just Debug and Release) and am using SQLite (which cannot be built against the AnyCPU Platform) and cannot find a way to run the test kit since it insists on a "Release + AnyCPU" build. Copying the contents of the actual output folder to "Bin\Release" doesn't seem to satisfy the test kit (nor did setting the output folder in the project file to "Bin\Release" for the appropriate configuration) and I can find no way to change the test kit settings/path. Is this simply impossible or am I just missing something?

我已阅读这篇文章 但它的帮助不大,也不完整(那篇文章没有说明自定义构建配置).我也发送了负面反馈这里 问了一个类似的问题(但当然不太可能得到答复).

I have read this post but it's less than helpful and also incomplete (that post doesn't say anything about custom build configurations). I have also sent negative feedback here asking a similar question (but of course that's unlikely to be replied to).

我打算为此添加store-test-kit"和custom-build-config"标签,但没有这样做的声誉,因此我已将它们添加到本说明中,以防万一与未来的搜索.

I was going to add "store-test-kit" and "custom-build-config" tags to this but don't have the reputation to do so so I've added them in this note instead in case it helps with future searches.

我的解决方案结合了许多项目,从 Windows 8 桌面到 Windows 8 Phone(包括 DLL 和其他支持依赖项目,包括 SQLite).为了只构建需要的东西,我彻底定制了我的构建配置.所以例如我有:N-Dbg、N-Rls、N-Str 和 P-DBG、P-Rls、P-Str 作为构建配置.这些区别于桌面([N]ot 电话)和 [P]hone 主要项目以及 Dbg(调试)Rls(发布)和 Str(商店)构建集.我有一个独特的 Str 构建,因此实时商店代码位从发布构建中排除,这也排除了所有额外的调试功能.尽管听起来很复杂,但它在实践中确实很好用,直到我需要构建一个发布"版本.(这完全忽略了等式的平台部分,仅选择 ARM 就足够了,我真的不能说,因为我目前没有好的方法来测试它).

My solution combines a number of projects spanning from Windows 8 Desktop to Windows 8 Phone (and including DLLs and other supporting dependecy projects including SQLite). In order to build only what is needed I drastically customized my build configurations. So e.g. I have: N-Dbg, N-Rls, N-Str and P-DBG, P-Rls, P-Str as build Configurations. These distingush from the Desktop ([N]ot phone) and [P]hone primary projects and the Dbg (debug) Rls (Release) and Str (Store) build sets. I have a distinct Str build so that the live store code bits are excluded from the Release build which also leaves out all the extra Debug features. As complicated as it all sounds it works really quite well in practice, until I need to build a "Release" version. (And this is completely ignoring the platform part of the equation for which just selecting ARM might suffice, I really can't say because I have no good way to test it at the moment).

理想情况下,我希望 Store Test Kit 测试的是 P-Str 构建配置.我尝试将配置设置为将该组文件输出到Bin\Release",这是全新的标准构建配置将Release\Any CPU"构建的位置,但 Store Kit 不喜欢它.它甚至没有列出它应该测试的 XAP 文件的路径.

Ideally then what I want the Store Test Kit to test against is the P-Str build config. I tried setting the configuration to output that set of files to "Bin\Release" which is where a brand new standard build config puts "Release\Any CPU" builds, but the Store Kit didn't like it. It doesn't even list anything for a path to the XAP file that it's supposed to be testing.

在我最初的帖子之后,我确实想尝试制作一个新的 Release 构建配置,它的设置与 P-Str 构建配置相同,但这似乎也没有让 Store Test Kit 满意(尽管我承认我我不是 100% 确定我完全准确地添加了新的构建配置,因为我已经很长时间没有创建自定义配置了).

After my initial post I did think to try making a new Release build config that was just setup the same as the P-Str build config but that also did not seem to make the Store Test Kit happy (though I admit that I am not 100% sure that I added the new build configuration completely accurately since it had been a long time since I created the custom config in the first place).

有没有人在 S.O.世界上有这样一个完全自定义的构建配置的经验,可以帮助我吗?

Does anyone out in the S.O. world have any experience with such a completely custom build configuration that might be able to help me out here?

推荐答案

我想在将近一整年之后,如果没有人找到更好的方法,我会接受建议,将其称为答案...

I guess after almost a full year if no one has found a better way I'll take the advice to call this the answer...

我非常想将文件复制到 Bin\Release 位置,但有一些缺失的部分.首先,我必须在项目文件中添加一个 Release+AnyCPU 条目(即使我从未真正使用过它),这样 Store Test Kit 就知道在哪里寻找 xap.其次,我必须确保将 Bin\Release 文件夹中的 xap 文件重命名为 ProjName_Release_AnyCPU.xap.完成这些事情后,我就可以运行测试套件了.

I was very close with the idea of copying the files to the Bin\Release location but there were a couple missing pieces. First I had to add a Release+AnyCPU entry to the project file (even though I never actually use it) apparently so that the Store Test Kit knows where to look for the xap. Second, I had to be sure to rename the xap file in the Bin\Release folder to ProjName_Release_AnyCPU.xap. Once these things are done I can run the Test Kit.

这篇关于是否可以将 Windows Phone 8 商店测试套件与自定义构建配置一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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