I am trying to invoke simple task after publish event. When I say \"publish\", I mean publish in Visual Studio, right click on project and pressing \"Publish...\". I have in
Adding my 2 cents
MS has confirmed, that when publishing to file system they don't have any target to launch after that.
"We currently do not support executing custom targets after publish from VS for the file system protocol."
Quoted from this SO question
So what we ended up doing is:
AfterTargets="CopyAllFilesToSingleFolderForPackage" (runs just before the files are copied to the publish location)timeout 10 command (waits 10 seconds) - for the lack of a better way.IMPORTANT: This bat file has to be executed asynchronously so the publish process continues after it's been launched, please refer to this SO answer on how to do that.