how to set the retain indefinitely flag programmatically RRS feed

  • Question

  • Hello.

    Is there a way I can programatically set the Retain Indefinitely flag on a build?  Preferablly with MSBuild as opposed to C#.

    Thank you.

    Monday, September 21, 2009 3:33 PM


All replies

  • Hi Logan,

    Sure, you can use the KeepForever property on the IBuildDetail interface:

    Blog: http://geekswithblogs.net/jakob Twitter: http://twitter.com/osirisjakob
    Monday, September 21, 2009 6:04 PM
  • Thank you Jacob for the info.

    I don't suppose you know of a way to do with with MSBuild, do you?  I do not know how to program in C#, and I was crossing my fingers that there was a way to do this with MSBuild only.

    Thanks kindly.

    Monday, September 21, 2009 6:45 PM
  • There is no out-of-the-box MSBuild task to do this for you. You'll need to download third party task libraries or write a small task to do it for you. No better time to learn! =)

    BTW, any .NET language will do!

    Tuesday, September 22, 2009 1:16 PM
  • Thanks for the info, all!

    Tuesday, September 22, 2009 1:41 PM