How to execute a PowerShell script only before a web deploy Publish task in VS 2012?
问题 Currently I have a post-build event configured in my web project using Visual Studio 2012 like this: This basically calls a PowerShell script to add a copyright notice to every .cs file. What I'd like to do is to execute this powershell script only before Publishing the web app to the remote server. Doing so I won't experience a delay every time I need to debug the project. Do you know of any way of accomplishing this? According to Sayed's answer, I customized a specific publish profile and