Setting post-build event commands?

浪子不回头ぞ 提交于 2019-12-12 02:53:43

问题


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.


回答1:


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>

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.



来源:https://stackoverflow.com/questions/27016704/setting-post-build-event-commands

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!