locked
Tfs Api compatibility question RRS feed

  • Question

  • Hello ,

    I created utility for MTM , I used  TFS API for this task.
    The problem is I made it in .NET 4.5 , and now people who have, Windows XP can't use it.
    I change my project to compile to .NET 4.0 but I still have a problem with TFS API assemblies version 11.0 (TFSApi Client for example). I need to instal TFS Explorer 12 on Windows XP , but it is not supported there.
    Maybe you can provide me with some workaround for this issue? Is it necessary to install Tfs Explorer 2012 in order to use this assemblies and launch my program successfully.?

    Thanks in advance,

    Victor

    Victor Rodniansky

    Monday, January 21, 2013 2:07 PM

Answers

  • Hi Victor,

    You cannot install team explorer 2012 on Windows XP it is not supported.

    However, you can bin the dll's of the TFS 2012 object model in your custom solution. By doing this, the customer are sure to have TFS 2012 DLL's on their PC for them to successfully run the program.

    I would however, like to know if you are actually need the TFS 2012 object model? If you do not have any specific requirements to use TFS 2012 object model, I would highly recommend installing TFS 2010 object model on the client desktops where the application needs to be run. You do not need to install team explorer 2010, since there is a separate installer for the 2010 object model that you can download from here. http://visualstudiogallery.msdn.microsoft.com/a37e19fb-3052-4fc9-bef7-4a4682069a75 

    If run into any further questions please write back in the forum.

    Hope this helps,

    Tarun


    Please remember to mark the replies as answers if they help.

    Tarun Arora

    Blog: http://geekswithblogs.net/TarunArora  Subscribe in a reader


    Facebook: Visual Studio Bytes

    Videos: ALM Videos

    Monday, January 21, 2013 8:37 PM
  • Hi Victor, 

    Thanks for your reply.

    If you installed VS 2012, you will find this dll under C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0. As far as I know this dll belong to 2012.

    We suggest you using the TFS 2010 object model dlls, and keep the same version.    


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, January 24, 2013 10:18 AM
    Moderator
  • I suggest you read about IOC (Inversion of Control). You shouldn't make you application dependent on specific assemblies and you want to load the ddl's at run time based on TFS. You may also want to have a façade layer for each model and have the shared code in a common project.  

    Ahmed is an independent consultant in Ottawa, Canada specialized in .NET, Biztalk, WCF, WPF, TFS and other Microsoft technologies.

    Blog: http://lajak.wordpress.com

    Twitter: ahmedalasaad


    Wednesday, January 23, 2013 3:38 PM

All replies

  • Hi,

    You can maybe use the standalone TFS Object Model

    http://visualstudiogallery.msdn.microsoft.com/f30e5cc7-036e-449c-a541-d522299445aa

    I am not sure if this is supported on Windows XP.

    Regards


    Please mark as answer if my answers are useful!
    René van Osnabrugge
    MVP Visual Studio ALM
    W: www.delta-n.nl
    B: osnabrugge.wordpress.com
    T: @renevo

    Monday, January 21, 2013 3:58 PM
  • Hi Victor,

    You cannot install team explorer 2012 on Windows XP it is not supported.

    However, you can bin the dll's of the TFS 2012 object model in your custom solution. By doing this, the customer are sure to have TFS 2012 DLL's on their PC for them to successfully run the program.

    I would however, like to know if you are actually need the TFS 2012 object model? If you do not have any specific requirements to use TFS 2012 object model, I would highly recommend installing TFS 2010 object model on the client desktops where the application needs to be run. You do not need to install team explorer 2010, since there is a separate installer for the 2010 object model that you can download from here. http://visualstudiogallery.msdn.microsoft.com/a37e19fb-3052-4fc9-bef7-4a4682069a75 

    If run into any further questions please write back in the forum.

    Hope this helps,

    Tarun


    Please remember to mark the replies as answers if they help.

    Tarun Arora

    Blog: http://geekswithblogs.net/TarunArora  Subscribe in a reader


    Facebook: Visual Studio Bytes

    Videos: ALM Videos

    Monday, January 21, 2013 8:37 PM
  • Hello,

    Thank you for your answer.

    I followed your suggestion ,to bin the dll's of the TFS 2012 object model in a custom solution.I succeeded to load a tfsClient.dll , but another problem occured I've got this exception in WITDataStore.dll (after I chose the desired project)

    "Unable to load DLL 'Microsoft.WITDataStore.dll' "  ,

    Maybe you can help here too?

    Thanks a lot,

    Victor


    Victor Rodniansky

    Wednesday, January 23, 2013 9:21 AM
  • I suggest you read about IOC (Inversion of Control). You shouldn't make you application dependent on specific assemblies and you want to load the ddl's at run time based on TFS. You may also want to have a façade layer for each model and have the shared code in a common project.  

    Ahmed is an independent consultant in Ottawa, Canada specialized in .NET, Biztalk, WCF, WPF, TFS and other Microsoft technologies.

    Blog: http://lajak.wordpress.com

    Twitter: ahmedalasaad


    Wednesday, January 23, 2013 3:38 PM
  • Hi Victor, 

    Thanks for your reply.

    If you installed VS 2012, you will find this dll under C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0. As far as I know this dll belong to 2012.

    We suggest you using the TFS 2010 object model dlls, and keep the same version.    


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, January 24, 2013 10:18 AM
    Moderator