How can I check if file exists, and if not kill the build?
问题 How can I stop a build, and notify the user if a file does not exist? I know I can use the available task to set a property if a file exists, but I'm not sure how I would stop a build and echo something. I would like to stick with core tasks if possible. 回答1: You can use the fail task for all your failing needs. The last example on that page is actually pretty much what you need <fail message="Files are missing."> <condition> <not> <resourcecount count="2"> <fileset id="fs" dir="." includes=