MSBuild - wait for x seconds
问题 I have a MSBuild script that deploys a web app. It stops the current web app by copying a 'app_offline.htm' file to the server. After this it deletes other files then copies new ones to the server. I need to add a delay between the copying of 'app_offline.htm' and the delete. My current script throws errors as the files are still locked when the script tries to delete them. What is the best way to do this in MSBuild? My Stop task looks like this... <Target Name="Stop"> <WriteLinesToFile File=