PreBuildEvent and PostBuildEvent on Visual Studio 2015 Tools for Apache Cordova
Does anyone know if there is a way to use PreBuildEvent and PostBuildEvent for the new Visual Studio 2015 Tools for Apache Cordova?
I tried this post but it didn't work: Configuring Post-Build Event Commands
+3
source to share
1 answer
I had a similar problem and needed to delete the build folder in my build of Cordova apps since VS 2015. I found a solution at this link fooobar.com/questions/2251510 / ... Hope it helps.
To delete a folder on Biuld of cordova app I added this to jsproj file
<Target Name="BeforeBuild">
<Exec Command="CD $(ProjectDir)
RMDIR /S /Q platforms"/>
</Target>
+3
source to share