问题
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