Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Verify the TFS Workspace

Enterprise Architect will be using the TFS command line client to commit file updates from the local working copy folder into the TFS repository. After creating the TFS workspace that maps your local working copy folder to a TFS repository folder, it is good practice to verify that the TFS workspace functions correctly before attempting to use it with Enterprise Architect. You need to be able to add files to TFS, place a check-out lock on the files and check-in changes to those files.

Verify correct operation of a TFS Workspace

Step

Action

See also

1

Use Windows to open a command prompt window.

2

Select the directory you specified as the local working copy folder when creating the TFS workspace.

For example:

     C:\> cd  myTFSWorkingCopyFolder

3

Create a test file, such as Test.xml, containing the text 'my TFS Test'. For example:

     C:\> echo my TFS Test > Test.xml

(The filename extension '.xml' is used because the TFS server should have been configured to allow exclusive checkouts for XML files.)

4

Using the command line client, execute each of these TFS commands:

  • tf.exe add Test.xml
  • tf.exe checkin Test.xml /override:"Manual check in." /comment:"a message"
  • tf.exe checkout /lock:checkout Test.xml

Use your preferred editor to modify the file and save the changes.

  • tf.exe checkin Test.xml /override:"Manual check in."  /comment:"a message"
  • tf.exe get . /recursive

Notes

  • All of the commands in step 4 should execute without any errors; in particular, you should be able to apply a checkout lock when checking out the file
  • If the checkout command reports any errors, you might have to reconfigure the TFS workspace as a server based workspace, or you might have to configure the TFS Server to use 'exclusive checkouts' for XML files