title: TF10152: The item must remain locked because its file type prevents multiple check-outs
body: <p>I am getting this error in TFS:</p>
  
  <blockquote>
    <p><code>TF10152: The item csproj must remain locked because its file type
    prevents multiple check-outs</code>.</p>
  </blockquote>
  
  <p>The file is checked out to me. I cannot undo the checkout. I cannot unlock it either.</p>
  
  <p>This is from the TFS output log in VS. I have removed the filenames to protect the innocent.</p>
  
  <blockquote>
    <p>TF10152: The item FILENAME.csproj must remain locked because its file
    type prevents multiple check-outs. Warning - Unable to refresh
    FILENAME.csproj because you have a pending edit. FILENAME.csproj has
    been automatically checked out for editing. TF10152: The item
    FILENAME.csproj must remain locked because its file type prevents
    multiple check-outs.</p>
  </blockquote>
  
  <p><strong>Edit</strong>: I think it may be an issue with the Solution file. I am getting the following error when trying to get the latest version of the Solution file. It automatically checks that one out too:</p>
  
  <blockquote>
    <p>There appears to be a discrepancy between the solution's source
    control information about some project(s) and the information in the
    project file(s).</p>
    
    <p>To resolve this discrepancy it will be necessary to check out the
    project file(s) and update them. If the check out fails, however, and
    the solution is closed without saving, you will see this warning again
    the next time you open the solution.</p>
  </blockquote>
  
  <p><strong>Edit</strong>: The solution file is having the same issue too. I compared the solution file with my workspace version and they are identical. The solution file is auto-checking itself out and I am getting the following message when I undo checkout:</p>
  
  <blockquote>
    <p>There appears to be a discrepancy between the solution's source
    control information about some project(s) and the information in the
    project file(s).</p>
    
    <p>To resolve this discrepancy it will be necessary to check out the
    project file(s) and update them. If the check out fails, however, and
    the solution is closed without saving, you will see this warning again
    the next time you open the solution.</p>
  </blockquote>