PreBuildEvent and PostBuildEvent on Visual Studio 2015 Tools for Apache Cordova

♀尐吖头ヾ 提交于 2020-01-03 21:02:20

问题


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

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