Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
psake 中是否有一个钩子可以在所有谈话(不仅仅是每个任务)之后运行一个清理块?
谢谢
据我所知,没有这样的选择。有几个相关的问题:
如果这个特性很重要,你可以看看类似的工具 Invoke-Build。它支持在构建脚本中定义的两个功能:(Enter-Build在第一个任务之前调用,用于初始化的地方)和Exit-Build(在构建完成或失败时调用,即始终是清理的地方)。
Enter-Build
Exit-Build