工具上的PreBuildEvent和PostBuildEvent

工具上的PreBuildEvent和PostBuildEvent

本文介绍了适用于Apache Cordova的Visual Studio 2015工具上的PreBuildEvent和PostBuildEvent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道在新的Visual Studio 2015 Tools for Apache Cordova上是否可以使用PreBuildEvent和PostBuildEvent?

我尝试了这篇文章,但是没有用:设置构建后事件命令?

解决方案

我遇到了类似的问题,我需要在VS 2015的Cordova应用程序构建中删除构建中的文件夹.我在此链接中找到了解决方案 https://stackoverflow.com/a/10605248/581157 希望对您有所帮助.

要删除cordova应用程序Biuld上的文件夹,我已将其添加到jsproj文件中

<Target Name="BeforeBuild">
    <Exec Command="CD  $(ProjectDir)
RMDIR /S /Q platforms"/>
  </Target>

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?

解决方案

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>

这篇关于适用于Apache Cordova的Visual Studio 2015工具上的PreBuildEvent和PostBuildEvent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 20:31