是否可以在VS2013和多设备混合应用CTP3中设置后期制作?我希望能够将输出的APK复制到其他位置.
Is it possible to set a post-build in VS2013 and Multi-Device Hybrid Apps CTP3? I want to be able to copy the output APK to a different location.
推荐答案您可以使用MSBuild Post构建事件将apk从bin \ Android \ Debug复制到您的自定义位置.您可以将PostBuildEvent添加到项目文件中以执行复制命令,也可以运行任务以将apk从一个位置复制到另一位置.
You can use MSBuild Post build event to copy the apk from bin\Android\Debug to your custom location. You can add PostBuildEvent to project file to execute the copy command or can run task to copy apk from one location to another.
<ItemDefinitionGroup> <PostBuildEvent> <Command>copy source_apk_location target_apk_location</Command> <Message>Making a copy of apk</Message> </PostBuildEvent> </ItemDefinitionGroup>要编辑项目文件,请转到解决方案资源管理器,在项目节点contextmenu下单击Unload Project-> Edit * .jsproj,并在进行更改后重新加载项目.
To edit the project file go to solution explorer, under project node contextmenu click Unload Project --> Edit *.jsproj and after making the changes reload the project.
更多推荐
设置构建后事件命令?
发布评论