问题
Does somebody know if there is a way to use PreBuildEvent and PostBuildEvent on the new Visual Studio 2015 Tools for Apache Cordova?
I tried this post, but it didn't work: Setting post-build event commands?
回答1:
I faced similar issue and i needed to delete a folder on build in my Cordova app build with VS 2015 . I found a solution in this link https://stackoverflow.com/a/10605248/581157 Hope this helps.
To delete a folder on Biuld of the cordova app i added this to the jsproj file
<Target Name="BeforeBuild">
<Exec Command="CD $(ProjectDir)
RMDIR /S /Q platforms"/>
</Target>
来源:https://stackoverflow.com/questions/31883604/prebuildevent-and-postbuildevent-on-visual-studio-2015-tools-for-apache-cordova