TFS – Keil source control intergration

12/06/2013

6 comments

Hi

For those of you who develop embedded systems in Keil , I prepared a configuration file to help you integrate with TFS within Keil environment.

The config file is formatted for Keil UV4, and the pathes I wrote in the file are targeting Team Explorer 2010 in 32 bit environment.

Feel free to change path to fit your environment.

Here’s the config file contents, feel free to copy and paste. Just change the paths if needed.

Dan
[SVCS]
DataBase=
MenuItem=Team Foundation Source Control &Explorer
Command=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Arguments=
Environment=
RunMinimized=0
QueryComment=0
QueryRevision=0
QueryCheckPoint=0
Initial_Folder=
MenuItem=Check &In ‘%F’
Command=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe
Arguments=checkin “#F” /comment:”%Q” /recursive
Environment=
RunMinimized=1
QueryComment=1
QueryRevision=0
QueryCheckPoint=0
Initial_Folder=
MenuItem=Check &Out ‘%F’
Command=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe
Arguments=checkout “#F” /recursive
Environment=
RunMinimized=1
QueryComment=0
QueryRevision=0
QueryCheckPoint=0
Initial_Folder=
MenuItem=&Undo Check Out ‘%F’
Command=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe
Arguments=undo “#F” /recursive
Environment=
RunMinimized=1
QueryComment=0
QueryRevision=0
QueryCheckPoint=0
Initial_Folder=
MenuItem=&Get Actual Version of ‘%F’
Command=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe
Arguments=get “#F” /recursive
Environment=
RunMinimized=1
QueryComment=0
QueryRevision=0
QueryCheckPoint=0
Initial_Folder=
MenuItem=&Add ‘%F’ to current Project
Command=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe
Arguments=add “#F” /recursive
Environment=
RunMinimized=1
QueryComment=0
QueryRevision=0
QueryCheckPoint=0
Initial_Folder=
MenuItem=&Differences of ‘%F’
Command=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe
Arguments=diff “#F” /recursive /prompt
Environment=
RunMinimized=1
QueryComment=0
QueryRevision=0
QueryCheckPoint=0
Initial_Folder=
MenuItem=&History of ‘%F’
Command=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe
Arguments=history “#F” /recursive
Environment=
RunMinimized=1
QueryComment=0
QueryRevision=0
QueryCheckPoint=0
Initial_Folder=
MenuItem=&List all items under ‘%F’
Command=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe
Arguments=dir “#F” /recursive
Environment=
RunMinimized=0
QueryComment=0
QueryRevision=0
QueryCheckPoint=0
Initial_Folder=
MenuItem=Lists all checked-out files under ‘%F’
Command=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe
Arguments=status “#F” /recursive
Environment=
RunMinimized=0
QueryComment=0
QueryRevision=0
QueryCheckPoint=0
Initial_Folder=

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

6 comments

  1. Roee23/12/2014 ב 11:06

    I’m trying to link TFS 2013 with KEIL uVision 4.74.
    I’ve used your modified script but it keeps outputting an error about a non exsiting directory..
    Do you have a screen shot example of the ‘Configure Software Version Control System” dialog ?

    Reply
    1. Dan Morgenstern
      Dan Morgenstern23/12/2014 ב 17:44

      My demo script fits installation of Team Explorer 2010 on 32 bit machine:
      C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe
      if you installed on 64 bit client, it’s program files (x86)
      if it’s team explorer 2012, then it’s 11.0, if 2013 then 12.0
      for example
      C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TF.exe
      if you installed your client on another drive other than C, then change path as well

      Reply
      1. Roee24/12/2014 ב 14:49

        I did change the path so it will be the one installed on my machine.
        Command=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TF.exe

        I’m getting an error when I’m trying to check in or add files, about a non existing directory.
        I do have a valid project path in the TFS server but I think that I haven’t filled out the fields correctly, in the KEIL version control form.

        Reply
      2. Roee29/12/2014 ב 09:52

        Your comment is awaiting moderation.

        I did change the path so it will be the one installed on my machine.
        Command=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TF.exe

        I’m getting an error when I’m trying to check in or add files, about a non existing directory.
        I do have a valid project path in the TFS server but I think that I haven’t filled out the fields correctly, in the KEIL version control form.

        Reply
        1. Dan Morgenstern
          Dan Morgenstern29/12/2014 ב 15:10

          i suggest you to open cmd window, execute and make it work there, then copy the fixed command to config file

          Reply