Use Team Foundation Server in Delphi 7? - delphi

I'm a .NET developer and use VS2008/TFS2008. Recently, another developer has left our company and now I have to maintain his code. He was a Delphi developer (Delphi 7 mostly, but also Delphi 2007) and he didn't use any source control.
Is there a way to put his code in Team Foundation Server? Integration in the Delphi IDE is a big plus.

To get IDE integration with TFS in Delphi 7, you need can use the MSSCCI provider for TFS in conjuction with SourceConnexion which gives MSSCCI support to Delphi. You will need to install the following on your machine if you do not have them already:
Microsoft Team Explorer 2008 (The TFS Client)
The Microsoft MSSCCI provider for TFS 2008
SourceConnexion
You need to ensure that you have TFS client access licenses for any of the Delphi folks connecting to TFS and get them a license for the SourceConnexion plug-in.
As you already have VS2008 installed on your machine talking to TFS2008 you probably only need to install items 2 and 3.
See Eyal's blog post for more information (a little out of date but stil valid).

We use SourceConnexion (3rd party plugin) with D2007:
http://www.epocalipse.com/scx.htm
(Works nice with SCC api plugin of Plastic SCM, which has better branching support than TFS :-) )

I realize that this is an old thread but during my reserach on how to use TFS2012 with Borland Delphi 2006 the posts here helped me a lot, so I wanted to share my experience.
To use TFS2012 or TFS2010 with Borland Delphi 2006 please follow these steps.
Download and install Microsoft Team Explorer 2010.
Download and install TFS MSSCCI provider TFS2010 (make sure you download the 32-bit version even if on a 64-bit machine!).
Download and install SourceConnexIon.
Open Borland Delphi 2006, click on the Source Control menu item and follow the configuration wizzard.
You must follow this order or SourceConneXion won't detect TFS.

Related

Keep vss and tfs together installed in the same machine

I have legacy projects bound to Visual SourceSafe and done with Visual Studio 2003. Now, I have recently installed Visual Studio 2017 and TFS in the same machine.
Now when I try to open a legacy project that is bound to Visual SourceSafe I get a sequence of errors. Below the screenshots (pixeled for confidenciality reasons).
It seems like when open a legacy project (bound to Visual SourceSafe) with legacy visual studio 2003, it tries to connect to the TFS server (obviously it cannot). It is happening since I have installed new Visual Studio 2017 and TFS in the same machine, it seems like they cannot live together in the same machine. So how can I keep both VSS and TFS installed in the same machine? Is it possible?
UPDATED:
It seems like VS2003 does not allow to switch SCC providers. The only way is to hack the registry to switch.
I have found some interesting things that explains how to do it and it seems to work, the problem is that some links are broken, they are too old and not available anymore.
Source safe with Team Foundation Server in VS.2003
Installed TFS Version Control Provider and Now my VS 2003 Projects lost connectivity to VSS 2005?
MSSCCI Provider installation error
In above links it is provided a solution that consists on hacking the registry but the link they provide is broken:
Switch SCC providers
UPDATE 2:
As Edward Thomson has suggested in his answer, I have created a new key 'HKCU\Software\Microsoft\VisualStudio\7.1\CurrentSourceControlProvider\ ' and set it with a string value: ProviderRegKey="SOFTWARE\Microsoft\SourceSafe". Below screenshot, but it is not working:
MSSCCI is the Microsoft Source Code Control Integration API, it was the original API provided by Visual Source Safe for IDE tools like Visual Studio. Early Visual Studio versions (like 2003) only spoke MSSCCI, and expected a version control provider to provide MSSCCI. As a result, you can only have one version control provider speaking that protocol.
The Team Foundation Server client APIs provide MSSCCI (for Team Foundation Version Control only, not Git). As a result, if you want to use Visual Source Safe, you will need to configure Visual Studio to speak to that set of libraries instead of the TFS set of APIs.
In slightly more recent versions of Visual Studio (like Visual Studio 2008), you can choose your MSSCCI provider on the fly, in Options > Source Control > Plug-In Selection. All the MSSCCI providers will be enumerated and you can select between Visual Source Safe and Team Foundation Version Control.
If you're using an earlier version of Visual Studio that did not have this option, then you can change your MSSCCI provider by updating the registry directly.
Find the registry key:
HKCU\Software\Microsoft\VisualStudio\7.1\CurrentSourceControlProvider\
And set:
ProviderRegKey="SOFTWARE\Microsoft\SourceSafe"
Update 7.1 in the key with the version of Visual Studio that you have installed (Visual Studio 2003 corresponds to version 7.1.)
Once you have made this change, you will not be able to use Team Foundation Verson Control from Visual Studio 2003 without changing that back.

How to use Visual Studio Online source control with VFP 9 SP1

How can I use this Visual Studio Online source control with a visual foxpro (vfp) 9 sp1 project so that the VFP does automatic check in and check out as I change files and lets me undo or check in source code and view history like I can do in the Visual Studio 2010 IDE with dot net projects?
I see there's a free team explorer everywhere which i guess i can use outside of the vfp IDE - not sure how it will handle the SCX, FRX, LBX, PRJ files which are not textual.
May be you can't use VSO with Visual FoxPro 9, but surely you can use other SCM tools with Visual FoxPro, like SVN, Mercurial, PlasticSCM (which I use), etc.
For Diff and Merge you can use a new tool found on VFPx project, called FoxBin2Prg, that allow bidirectional conversion of VFP 9 binaries to text and vice-versa, so you even can modify the generated text version and rebuild the binary.
More info at FoxBin2Prg - Binary/Text Conversor for Microsoft Visual FoxPro 9.
Best regards!
I ran into this question while researching. Looks like Microsoft updated the MSSCCI to be used with Visual Foxpro
Install the Microsoft Visual Studio Team Foundation Server 2013&2015 MSSCCI Provider 32 bit : https://visualstudiogallery.msdn.microsoft.com/06c8e056-7f77-4a5c-9b8b-49318c143df8
It supports Visual FoxPro 9 SP2 connection to Visual Studio Online
Combined with the Team Explorer for Microsoft Visual Studio 2013, you can branch, forward integrate, reverse integrate. I'm still exploring it
You can't, and the main reason is that while PRG and other textual files are fine method code and other stuff is stored in DBF-format files, which your chosen source control software will treat as binary.

Connecting TFS 2010 from Delphi XE

We are using Delphi XE at our company to develop some Delphi applications and as well as .Net.
TFS 2010 is our primarly source control mechanism for .Net; but we want to use TFS 2010 for Delphi.
I installed Team Explorer Everywhere 2010 but i couldn't see any menus or windows at Delphi XE editor about Team Explorer.
So how can we connect Delphi XE to TFS 2010?
AFAIK TEE 2010 is an Eclipse plug-in, Delphi is not an Eclilpse based IDE, nor it could use MSSCCI/SCC providers without adds-on. If TFS 2010 can work with an MSSCCI/SCC provider (you may have to install support separately), then you can use a Delphi add-on, see for example Use Team Foundation Server in Delphi 7?, it is for Delphi 7 but situation didn't change much.
Delphi XE can use a new API to handle VCS directly, but it is not compatible with older versions (making it less appealing for those who sell already existing add-ons), and thus requires someone to add TFS integration, and TFS is not usually the first choice by Delphi shops. Moreover fashion today dictates that DVCS are hot, and most efforts are in that direction.
You would need to find or produce a TFS 2010 plugin for the Delphi IDE! To the best of my knowledge, Embarcadero has only integrated SVN (Subversion) into the IDE (XE and XE2).
A quick Google search does not look too promising... so a lot of manual effort may be required on your part, or you may have to simply change your choice of source management solution.

tfs integration with delphi 2010

We are currently upgrading from Delphi 7 to Delphi 2010. With Delphi 7 we use Source Connection to integrate Delphi 7 with TFS, but there does not look like there is going to be a Delphi 2010 version in time. Is there any other integration option out there?
VssConneXion is not ready for Delphi 2010 yet (there is a version for Delphi 2009 on their downloads page).
Currently, I'm running the (Microsoft) Team Explorer for managing my source code check-out/check-in and work-items.
It works fine, even though it is not integrated in the Delphi IDE.
I've not tried which version of Team Explorer works with which versions of Team Foundation System (this question has a bit more info), but here are a few download links:
Team Explorer 2010
Team Explorer 2008
Team Explorer 2005
--jeroen
There's athlant, but it's seems there's no updated version for Delphi 2010 too.
I used VssConneXion for years, but I gave up because they don't update it frequently, and you have to wait much months for new release, so I went to SVN with TortoiseSVN, and since that day, I have never needed any IDE integration, it's work wonderfully without the IDE integration, but you may don't like it at first, but after few time, you will like it more than IDE integration.

Basic Team Explorer usage questions

We are setting up a new TFS 2008 implementation as our first usage of TFS for source control. We have several projects in Visual Studio 2003, 2005 and 2008, as well as other script/non-Visual Studio based projects.
My question is, for the Visual Studio 2003 and 2005 projects do we have to install Team Explorer 2003/2005 and make use of them to add projects to source control and to check out/in files, or, can we just use Team Explorer 2008 to add projects and check in/out files? The thought being that the developer could use 2008 to check out any thing and then open the appropriate visual studio version to work on their local instance of the project before then checking it back in using team explorer 2008 within their local visual studio 2008 application.
The concern is that by using team explorer 2008, that visual studio 2008 might impose changes on the older systems solutions dll or control details.
Thanks for any guidance.
This is possible. I have colleagues who are using Team Explorer for non-code files (Word documents, help files, etc.) and use it like they would VSS or any other SCC.
As an added bonus, I'm pretty sure that TFS Server 2008 is backwards compatible to at least 2005 (haven't run against 2003 in awhile). IIRC, I've run VSTS 2005 For Developers against a 2008 TFS Server.
I would double-check for you, but I've recently recently re-imaged my dev machine and haven't re-installed 2005 (working on new stuff!).
As an aside, I've found TFS to be a huge timesaver as far as the whole dev process. The IDE integration is top notch, and the linked bug/task tracking and changesets, with alerts, notes, built-in queries and reports had me wondering how I ever got along w/o it.
HTH.
The Team Foundation Client for VS 2005 and VS 2008 can be installed side by side so there's no issue there (there isn't one for VS 2003, but you could probably use the MSSCCI provider).
You can however, if you want to, do all of your source control operations in VS 2008 (or the Windows Explorer extensions in the latest power tools) but work on the projects from VS 2003/2005 without any issues. You just need to make sure you don't accidentally open the project files from within VS 2008 because that will upgrade the project format.

Resources