设置post-build事件命令?

时间:2014-11-19 12:20:35

标签: visual-studio-2013 multi-device-hybrid-apps

是否可以在VS2013和多设备混合应用程序CTP3中设置后期构建?我希望能够将输出APK复制到其他位置。

1 个答案:

答案 0 :(得分:3)

您可以使用MSBuild Post构建事件将apk从bin \ Android \ Debug复制到您的自定义位置。您可以将PostBuildEvent添加到项目文件以执行复制命令,也可以运行任务将apk从一个位置复制到另一个位置。

  <ItemDefinitionGroup>   
    <PostBuildEvent>
   <Command>copy source_apk_location target_apk_location</Command>
      <Message>Making a copy of apk</Message>
    </PostBuildEvent>
  </ItemDefinitionGroup>

要编辑项目文件,请转到解决方案资源管理器,在项目节点上下文菜单下单击卸载项目 - &gt;编辑* .jsproj并在进行更改后重新加载项目。 enter image description here enter image description here