开发者

Setting properties in triggered build

开发者 https://www.devze.com 2023-01-17 05:33 出处:网络
When queuing a new build开发者_如何学Python using VS it is possible to pass in arguments to MSBuild which let\'s you do thing like skipping some steps of the build or do some things conditionally.

When queuing a new build开发者_如何学Python using VS it is possible to pass in arguments to MSBuild which let's you do thing like skipping some steps of the build or do some things conditionally.

Is it possible to pass in such arguments to a build that's triggered by a checkin or a nightly build?


You can check the value of the $(Reason) property in your TfsBuild.proj file.

<Target Name="BuildNumberOverrideTarget" Condition=" '$(Reason)' == 'Schedule' ">
    <MyBuildNumberGenerator TeamFoundationServerUrl="$(TeamFoundationServerUrl)" BuildUri="$(BuildUri)">
      <Output TaskParameter="BuildNumber" PropertyName="BuildNumber" />
    </MyBuildNumberGenerator>
</Target>

More details available here: http://msdn.microsoft.com/en-us/library/cc716772(VS.90).aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号