none
CheckinException "The type caught or thrown must be derived from System.Exception"

    Question

  • this is not exactly a Build Automation question but it derives from the post http://social.msdn.microsoft.com/forums/en-us/tfsversioncontrol/thread/586342C2-7861-4B70-A34C-A8E713DDBB70

    I'm trying to add a try/catch in my custom assembly task so that I can determine the exact source of my problem - "TF10141: No files checked in: resolve the conflicts and try again."

    but I get a compile error when I write the following code

    try
    {
      ...checkin...
    }
    catch(CheckInException x)
    {
    }

    since the only mention in the forums of CheckInException is the aforementioned post, I come here for help.  any ideas? TIA

    Wednesday, August 03, 2011 2:46 PM

Answers

  • Microsoft.TeamFoundation.Common

    when I try to build the assembly I get an error that I need to reference Microsoft.TeamFoundation.Common. 

    now it recognizes CheckInException as derived from Systrem.Exception

    • Marked as answer by megabitee Wednesday, August 03, 2011 3:52 PM
    Wednesday, August 03, 2011 3:52 PM

All replies

  • Microsoft.TeamFoundation.Common

    when I try to build the assembly I get an error that I need to reference Microsoft.TeamFoundation.Common. 

    now it recognizes CheckInException as derived from Systrem.Exception

    • Marked as answer by megabitee Wednesday, August 03, 2011 3:52 PM
    Wednesday, August 03, 2011 3:52 PM
  • Hi Megabitee,

     

    Thanks for your post.

     

    And thank you for sharing your experience here. It will be very beneficial for other community members having the similar questions.

     

    All your participation and support are very important to build such harmonious/ pleasant / learning environment for MSDN community.


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, August 04, 2011 2:41 AM
    Moderator