2013-02-15 61 views

回答

1

被設置爲每週日下午1點和有條件方框運行使用的時間間隔觸發,以檢查是否該周最後構建時間跑了,就像這樣:

<conditional> 
    <conditions> 
    <lastBuildTimeCondition> 
     <time unit="hours">168</time> 
    </lastBuildTimeCondition> 
    </conditions> 
    <tasks> 
    <msbuild /> 
    </tasks> 
    <elseTasks> 
    <!-- Something else, maybe comment task --> 
    </elseTasks> 
</conditional>