Thanks Peter,

 

I will give it a go.

 

From: oztfs-boun...@oztfs.com [mailto:oztfs-boun...@oztfs.com] On Behalf Of
Peter Ritchie
Sent: Wednesday, 19 October 2011 11:32 AM
To: ozTFS
Subject: Re: TFS checkout dependency (Checkout 2 items or none)

 

You can manually edit a proj (like csproj) file and add dependency
relationships for certain files.  For example, when you create a WinForm, it
creates a dependant designer.cs file and in the project it's detailed as
being dependant on the form cs file.  For example:

    <Compile Include="MainForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="MainForm.Designer.cs">
      <DependentUpon>MainForm.cs</DependentUpon>
    </Compile>

You can add you own dependencies this way and under many circumstances when
you edit one of the files, VS will "check-out" both files.

 

I'm not sure what you mean by "none at all" though, if you want to edit a
file it has to check-out a least one file.  I suppose if someone had
exclusively checked-out MainForm.Designer.cs and not MainForm.cs it wouldn't
check-out either file; but, that seems to go against making TFS check out
both files at once...

 

Cheers -- Peter

 

On Tue, Oct 18, 2011 at 7:20 PM, etmilis <etmi...@iinet.net.au> wrote:

Hi Everyone,

 

Is there a way to force TFS to checkout 2 items or none at all?

For example: Checkout item A AND B or none at all.

 

Thanks and Regards,

Etmilis

 


_______________________________________________
oztfs mailing list
oztfs@oztfs.com
http://prdlxvm0001.codify.net/mailman/listinfo/oztfs





 

-- 
"Refactoring with Microsoft Visual Studio 2010": http://bit.ly/c13trs
<http://lynk.at/c13trs> 
http://PeterRitchie.com/blog/
http://twitter.com/PeterRitchie
http://facebook.com/Peter.Ritchie/
http://www.linkedin.com/in/PeterARitchie
Skype:Peter.a.Ritchie

_______________________________________________
oztfs mailing list
oztfs@oztfs.com
http://prdlxvm0001.codify.net/mailman/listinfo/oztfs

Reply via email to