Is TFS available in Visual Studio for Mac - visual-studio

I haven’t find TFS in Visual Studio for mac, Is any alternative tools available for that.

TFS is a rather broad term and describes a whole suite of solutions. I’m assuming that you mean the version control section for my answer.
There is no support for TFVC, which is the older versioning control system that used to be default in TFS.
Since some time now, TFS and VSTS (basically the cloud hosted version of TFS) have switched to Git. Git is supported from Visual Studio for Mac as well as a lot of other tools of course.
If you still want to use TFVC, I have only found one option which isn't pretty. I installed Eclipse (the IDE for Java) which has a plugin for the TFVC version control. It looks and works pretty similar to how it looks in Visual Studio for Windows. It has some quirks and I would be surprised if it is still actively maintained, so use with caution and if you have the possibility look into switching to Git.
Edit though they seem to be working on it! If you check out the linked blog post you will see that support is in the works and I think there is a preview you can download today.

For Visual Studio Mac, TFS is supported for now. There has been a uservocie, you can vote up and monitor it.
TFS Version Control
https://visualstudio.uservoice.com/forums/563332-visual-studio-for-mac/suggestions/17136163-tfs-version-control
However, this is only a preview feature as you can see the comment from PM:
I’m happy to say that our first preview of this feature is now
available – check out the announcement blog post.
https://blogs.msdn.microsoft.com/visualstudio/2018/05/07/visual-studio-for-mac-version-7-5-and-beyond/
I’ll continue to share out updates here as we make updates to the
preview.
Jordan Program Manager, Visual Studio for Mac
According to the comment below the blog post, it seems not stable for now. If you want a more stably solution of using TFS source control on Mac, you could try to use Visual Studio Code, which is more of a fast, lightweight code editor.
With the help of Visual Studio Team Services extension on Visual Studio Code, it allows you to connect to Team Services and Team Foundation Server and provides support for both Team Foundation Version Control (TFVC) and GIT. More details can be found at Connect VS code with TFS on mac

As of VS 2019 for MAC, support for preview as well has been dropped.
Caution
The preview TFVC extension for Visual Studio for Mac is no longer supported in Visual Studio 2019 for Mac.
As per this doc, it's recommended to use GIT for version control. Otherwise, if there's no option then to use TFS on macOS several options are also provided in the link.
Option 1. Use Visual Studio Code and the Azure Repos extension, for a
graphical UI
Option 2. Connect to your repo using the Team Explorer Everywhere Command Line Client (TEE-CLC)
Also, there's eclipse plugin available for TFVC on mac

Related

Installation of AnkhSVN Visual Studio 2019

I can not Install AnkhSVN -Subversion Support for Visual Studio 2019,
I have tried to Install It, It says Version is Invalid for VS2019
I use VS2019 Professional
I have made a fork of the AnkhSVN project and published a version on Visual Studio Marketplace as AnkhSVN2019.
This version targets only Visual Studio 2019.
The page on the Visual Studio Marketplace is here:
https://marketplace.visualstudio.com/items?itemName=PhilJollans.AnkhSVN2019
You can also find it by searching the Visual Studio Marketplace in Visual Studio.
The project is on GitHub here:
https://github.com/PhilJollans/AnkhSVN2019
As far as I can tell it is working correctly, but that is based on a small number of systems, and I only use a subset of the features.
Support for Visual Studio 2022
My fork of AnkhSVN does not support Visual Studio 2022, but there is a version in the GitHub repository from the original developers of AnkhSVN.
As of 4-December-2021, this version is not available in the Visual Studio Marketplace, but you can download the package from the releases page on GitHub.
As of 4-December-2021, the download link for the current version is
https://github.com/AmpScm/AnkhSVN/releases/download/v2.9.87/Ankh-VSIX-2022.zip,
but there may now be a newer version.
The latest AnkhSVN version is not compatible with Visual Studio 2019 (and the project, unfortunately, seems dead).
A possible solution is to edit manually the files stored in the vsix file (it's a zip file with a different extension).
The file to edit are:
extension.vsixmanifest
Change the occurance of [15.0,16.0) to [15.0,17.0)
Change the prerequisite in this way:
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />
catalog.json
search Microsoft.VisualStudio.Component.CoreEditor and change the version to "[15.0,)"
manifest.json
search Microsoft.VisualStudio.Component.CoreEditor and change the version to "[15.0,)" as the catalog.json
After these changes it's possible to install the extension in VS2019 but still open a warning shown by VS related an incompatibility of the load process (AnkhSVN use a synchronous load, VS2019 want an async load).
Looks like it doesn't support VS2019 by default. https://ankhsvn.open.collab.net/
But you can try to update extension for VS2019.
Rename vsix to zip
Unzip
Open extension.vsixmanifest, manifest.json and catalog.json and for Microsoft.VisualStudio.Component.CoreEditor change version to [15.0,)
Open extension.vsixmanifest and also replace all [15.0,16.0) by
[15.0,17.0)
Zip all files
Rename to vsix
The original AnkhSVN project developed by CollabNet is now abandoned and does not support Visual Studio 2019 now (the project is inactive for more than 17 months). As an alternative, consider migrating to VisualSVN that is now completely free for use on non-domain computers (no registration required) and provides about the same functionality compared with AnkhSVN (some users consider VisualSVN to be better for their use cases).
Migrating from AnkhSVN to VisualSVN is a straightforward process. The most recent VisualSVN 7.1 and VisualSVN 6.5 releases add support for multiple working copies within a single solution, and this makes the migration practically instant and painless for almost all users. See the article KB58: Migrating from AnkhSVN to VisualSVN for instructions and the article KB7: Using Multiple Working Copies in VisualSVN if your solution projects span across multiple working copies.
Note that the workarounds suggested in the accepted answer may cause overall Visual Studio destabilization and do not make AnkhSVN compatible with Visual Studio 2019. See the comments under these answers:
https://stackoverflow.com/a/55533335/761095
https://stackoverflow.com/a/55533472/761095
BTW, according to this post, those hacky workarounds do not work anymore.
DISCLAIMER: I am a support engineer with VisualSVN Team.
I've just installed AnkhSVN 2.8.12824 via "Manage Extensions". It seems to work, though Visual Studio 2019 complains that it might not be compatible with a future Visual Studio update (Deprecated APIs).
See also
https://ankhsvn.open.collab.net/ds/viewMessage.do?dsForumId=582&dsMessageId=647485
Possibly also
https://learn.microsoft.com/en-us/visualstudio/extensibility/synchronously-autoloaded-extensions?view=vs-2019
AnkhSVN supports Visual Studio 2019 now. Download here https://marketplace.visualstudio.com/items?itemName=simonp.AnkhSVN-SupportVS2019 [broken link]
Seems to still be active on GitHub: github.com/simonp22/AnkhSVN
The owner removed the program from the marketplace until he works out the async loading in the code, according to a comment from him in the github project
https://github.com/simonp22/AnkhSVN

Visual Studio team services for Mac

I am working on Xamarin visual studio on Mac and we are using visual studio team services for our project.I have no problem pulling the code but I can't seem to be able to Check in any file I modify to the team service.
If you are using GIT just take a look at below tutorials:
Working with Git on Visual Studio Mac
Xamarin DevOps with VSTS - Getting Started(Visual Studio for Mac has replaced Xamarin Studio, but similar steps on git)
For visual studio Mac, TFVC also supported for now.
However, this is only a preview feature as you can see the comment from PM:
I’m happy to say that our first preview of this feature is now
available – check out the announcement blog post.
https://blogs.msdn.microsoft.com/visualstudio/2018/05/07/visual-studio-for-mac-version-7-5-and-beyond/
I’ll continue to share out updates here as we make updates to the
preview.
Jordan Program Manager, Visual Studio for Mac
According to the comment below the blog, seems not stable for now.
For now, you want a more stably solution of using TFVC source control on Mac. You could try to use Visual Studio Code , which is more of a quick; light weight code editor.
With the help of Visual Studio Team Services extension on Visual Studio Code, it allows you to connect to Team Services and Team Foundation Server and provides support for both Team Foundation Version Control (TFVC), GIT. More details please take a look at Connect VS code with TFS on mac

Can we integrate TFS with Visual Studio for Mac?

I am using Visual Studio Community version 7.3.3 for MacBook. I am working on a project where the repository is hosted in Team Foundation Server (TFS). Can I integrate that using the Version Control option in Visual Studio. Git and SVN are possible thats what I heard. But need some help on this.
This requirement is under plan now. Please check this uservoice:
We’ve been working on some technical prototypes to see how we could
best connect to TFS from a Mac and at this point I’m happy to say that
this work is now planned for an upcoming release. Please keep an eye
on this site for updates!
As of now TFS integration is not implemented for Visual Studio in Mac, they are working on that. Got this information from one person who is directly involved in the development of Xamarin for Mac.
According to this Link this feature is now officially supported and deployed with the new version Visual Studio for Mac (extension v0.3)

TFS Windows Explorer Integration - Getting version history outside of VS

I worked for year using CVS source control with Windows Explorer integration using TortoiseCVS which enabled me to view the history of my files in a graphical way and allow me to compare any 2 versions of the file without the need to open IDEs.
Lately I started working in a new place that uses TFS which require me to open Visual Studio every time I want to see the file history.
It would be great to have this level of integration between TFS and Windows Explorer. I wonder if any third party has developed such functionality?
Currently I use C# with Visual Studio 2013.
This is what I see when I choose Revision Graph:
Shell integration can be installed as part of the Visual Studio Power Tools for Team Foundation Server 2013. Make sure you check the "Windows Shell Extensions" option.
To see the revision graph, I am afraid you still need to open Visual Studio and use the Track Changeset feature which seems the closest as far as I can tell.
That and the "Incoming Changes" codelens that was added to Visual Studio 2013 Ultimate and which is going to be part of Visual Studio 2015 Professional and up.

Re-integrating Clearcase with Visual Studio 2010?

I've seen the questions on ClearCase support and integration, but both didn't help. Seen this too, but well...
I had a VS2010 project with which I was able to check in and out files within VS itself, but sometime back, it showed that it couldn't connect to ClearCase, and now I when I right click on the project files in solution explorer, the ClearCase options aren't even available in the right-click menu.
How do I get it to work with ClearCase now?
I'm able to check in and out the files from Windows explorer and from ClearCase explorer, but how to do it through Visual Studio?
(Note: The 'ClearCase' option in Tools>Options>SourceControl is already selected)
The rare case I have seen that were:
incompatibility with a VM64bits (I believe this is now solve)
due to a ClearCase update (only solution was to uninstall ClearCase, uninstall VS2010, reinstall VS2010 first, then ClearCase)
Note that this technote (originally about CCRC, which isn't your case) does mention
ClearCase and CCRC versions 7.0.1 and 7.1.1
There is no Visual Studio 2010 integration available during an installation of ClearCase or CCRC versions 7.0.1.x or 7.1.1 or 7.1.1.1.
Refer to the workaround details below for information about obtaining a utility and for instructions for setting up the integration.
WORKAROUND
A utility is available along with instructions on setting up the integration. If you have any questions or issues with using this utility, contact IBM Rational Client Support for assistance.
Refer to document 4024532 Integrate ClearCase and CCRC 7.0.1 and 7.1.1 with Visual Studio 2010 for details.
So it depends also about your exact ClearCase version.
The aforementioned technote (4024532) refers to:
When using the ClearCase integration with Visual Studio 2010, glyphs indicating the source control state for ASP.Net Web Site projects are not displayed in Solution Explorer.
(Meaning it can also depends about the type of your VS project)
The defect with Microsoft WebSite project has been fixed in Visual Studio 2010 SP1.
Visual Studio 2010 SP1 is supported from ClearCase 7.1.1.6 and 7.1.2.3 onwards.
(Meaning it also depends about the exact version of your VS itself)
Your case doesn't seem to refer to that issue, since you don't even have ClearCase contextual menu on the project files of your solution (hence my advice to uninstall everything and re-install), but illustrates the need to know the exact details about:
the error message
the version of ClearCase
the version of VS2010

Resources