0

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.

Herb
  • 636
  • 1
  • 15
  • 29
DkDev
  • 547
  • 5
  • 14

3 Answers3

3

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!

spottedmahn
  • 14,823
  • 13
  • 108
  • 178
Fer B.
  • 425
  • 5
  • 11
1

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

Peter.S
  • 57
  • 5
  • It surprisingly works with VFP8 once it is setup with VFP9 SP2. I can open the project in VFP8. Checkout/checkin right from the project will use the MSSCCI dialogs. Combined with Microsoft Team Explorer 2013 it worked just like the old Source Safe, with additional Branching/FI/RI/Shelving features. – Peter.S Feb 01 '16 at 15:29
  • Thank you for reply, we will try it as soon as possible. – polach.o Feb 03 '16 at 15:10
  • Please mark the answer as useful when you get the chance :) – Peter.S Feb 04 '16 at 17:29
  • Hi, I install MSSCCI provider and integrate to VFP IDE successfully. Then I trought add existing project to source control. First step, PJM file with project info and without file list, was success, Second step, adding files, was success. Then I trought update project list for adding file list to PJM, checkin was success, but after that, VFP trought update project from PJM and error " cannot update project from project metafile" occurs. Any ideas? More info here: http://stackoverflow.com/questions/36889146/tfs-msscci-provider-with-visual-fox-pro-9-sp2-cannot-update-project-from-proje – polach.o Apr 28 '16 at 06:15
  • 'Solution' here: http://stackoverflow.com/questions/36889146/tfs-msscci-provider-with-visual-fox-pro-9-sp2-cannot-update-project-from-proje – polach.o May 02 '16 at 13:53
  • Sorry it didn't work for you. From Jesse's comment, seems like the only difference why mine works is that I use server workspace configuration. – Peter.S May 02 '16 at 14:27
  • This is my workspace setting (using Source Control Explorer from VS2015) : server (), Location (Server), File Time (Current), Permission (Public Workspace) – Peter.S May 02 '16 at 14:44
  • 1:add a new project in VSO. 2:Create new project in VFP9Sp2. 3:Add a blank form with button. 4:Menu Project/Add project to Source Control (click Check-In). 5:Menu Project/Source Control/Update Project List. I also tried starting with blank project, then update project list, before adding a form, and it went smoothly. – Peter.S May 02 '16 at 14:59
  • I've got same workspace setting, only permission is Private Workspace. I think it's project specific problem. – polach.o May 03 '16 at 07:56
  • There was problem in PJM file - one file path contained comma. It's a pity that IDE didn't show detailed error message about syntax error (for example line number). Finding this one line in thousands lines was hard. – polach.o May 03 '16 at 09:11
  • Very nice. Now if we can figure out how to compare scx/vcx it would be most useful. – Peter.S May 03 '16 at 17:33
  • Peter, have you some experiences with offline working with MSSCCI provider? Some unresolvable problems? – polach.o May 11 '16 at 11:06
  • Not really, care to elaborate? – Peter.S May 11 '16 at 17:48
  • Not yet. First I will try some tests. Maybe later. Thanks – polach.o May 12 '16 at 09:10
-1

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.

Alan B
  • 4,086
  • 24
  • 33
  • aren't prg files treated as text files? the binary might be correct for scx, frx, and prj files - but not for .prg right? – DkDev May 13 '14 at 11:15
  • Right. Back in the day there were plugins for Visual SourceSafe that could handle the source code embedded in the VCX/SCX and so on, diff it etc. but nothing like that exists for VS Online. – Alan B May 13 '14 at 13:52
  • do you think this Microsoft Visual Studio Team Foundation Server 2013 MSSCCI Provider would work with vfp 9 spy? it says it works on vfp 9 spy http://visualstudiogallery.msdn.microsoft.com/06c8e056-7f77-4a5c-9b8b-49318c143df8 – DkDev May 13 '14 at 18:18
  • Even if it does not work you can have Team Explorer open side by side with FoxPro. You can then exit in FoxPro but manage source in Team Explorer. – MrHinsh - Martin Hinshelwood May 14 '14 at 06:59
  • As mentioned above, there are bi-directional tools that allow you to convert between VFP binary files and plain text – BD. Oct 02 '15 at 14:52