I am using the TeamCity plugin for Visual Studio 2015, and the Local Changes window is great for submitting private builds, easily assigning a check-in to a TFS task etc.
However, as my company is currently using TFS source control, the unified diff pane does not work ('Unified Diff is not supported by TFS integration'), so I would like to easily diff each file by double-clicking it rather than having to right-click each one and select 'Diff against workspace'.
Does anyone know how/if this can be achieved?
Thanks!
Unfortunately, this can't be achieved. There is no such related settings with TeamCity Visual Studio plugin. You can try to use external diff viewer such as beyond compare, more details please refer Teamcity - which external diff viewer
Related
However VS 2019 is the best IDE, sometimes we want to do somethings and we can not do it. for example, you work on a project and suddenly your PC is crashed and you have some class check out on TFS.
In new PC when you get source you see some sources check out with your user in another pc and you can not check-in or undo them in VS 2019. What can you do?
A tip for solving the problem with another work-space in TFS
Solution
The best way that I find without any writing commands is:
Install VS 2013 and after that get Power Tools for TFS vs 2013
After install power tools, when you get the source with vs 2013 and go to source control explorer, you can right-click on your project and go to find--->findByStatus
and click on find.
you see all files which are checked out by other workspaces and you can undo them
that's easy
Next step. close vs 2013 and open VS 2019 and get your sources and start again write code. (please write clean code :))
You can also use the Attrice TFS Sidekicks available here there are multiple versions for different Visual Studio but they all work against 2019. From the workspace sidekick you can list and remove old workspaces.
Also you can run from the TF.exe command line do remove old workspaces Microsoft doc available here
I am trying to evaluate VS Code instead of VS professional version for my work.
Can I use VS code with TFS for daily operations like?
Create work space?
Get latest source code?
Code checkin?
Shelve set?
Code review request ?
etc?
As jessehouwing mentioned most of that are supporeted except for the Code Review bits.
You need to install Visual Studio Team Services Extension for Visual Studio Code
The following are the current features supported by the extension:
Execute all basic version control actions such as add, delete, rename, move, etc.
View local changes and history for your files
Include and Exclude changes (and move files between the two states)
Merge conflicts from updates
Check-in and update local files
Associate work items to check-ins
Provides an integrated TFVC Output window
Support for a TFS proxy
Supports workspaces created with Visual Studio (via tf.exe) or the JetBrains IDEs and Eclipse (via the Team Explorer Everywhere Command
Line Client)
To start using the TFVC features, review the documentation and
check out the TFVC Source Code Control for Visual Studio Code
video which shows you how to configure and use the TFVC features.
The extension supports TFVC across Windows, macOS and Linux (with
separate configuration instructions for macOS and Linux; see
video).
If you’ve never used the extension before, we also have a
walkthrough to get you started.
Source here : Official Release of TFVC Support for Visual Studio Code
In Visual Studio 2015 I could use the TFS Power Tools and then do a "Find by Status" to get a list of all checked out files and who has them checked out.
Does anyone know of a way to do this in Visual Studio 2017? I've read that they do not plan on releasing a TFS Power Tools 2017.
Thank you,
Actually, the "Find by Status" feature only works for Server workspace. If you're using Local workspace, it doesn't show anything.
As a workaround, maybe you could use the tf status command instead, it displays information about pending changes to files and folders.
Or you could use TFS API, here is an example: http://geekswithblogs.net/TarunArora/archive/2011/07/16/tfs-2010-sdk-get-list-of-user-workspaces-and-checked.aspx.
Is it possible to add a new file (or new version of a file) to a TFS project via the web interface without using Visual Studio? There are some code artifacts, such as PS1 scripts, which we may want to keep under source control, but the owners of such files may not have Visual Studio even installed.
No, this functionality is not available in TFS 2013.
This does exist in TFS 2015 (and in Visual Studio Online), but if you are using TFS 2013, you have a few options:
Install the standalone Team Explorer. Despite the name, you do not need to have Visual Studio installed - if you don't, it will install a standalone version that can communicate with a TFS server.
Use the command-line interface. (Also available with the download above.)
Yes it is possible.
In our companies real world example we, have a CI build set up at work that does nothing but code sign powershell files. This was a huge carrot to get the systems engineers to leverage source control. The don't use Visual Studio though. They seem to like using powerGUI which has TFS integration support.
In the TFS 2015 web interface, yes, this is possible.
If you are asking how:
To add a new file, right-click on the folder (in the folder
hierarchy on the left) and there's a menu option to "Add file(s)...".
To edit a file (add a version), open the file contents in the right pane, and
there's an "Edit" button.
We're a small shop and have legacy VB6, Classic .ASP, .NET 1.2 - 3.51. We installed the product successfully, but since depending on the code which needs changing we fire up the respective IDE Visual Studio x. How do we go from no source control to TFS?
You will probably want to look at the TFS 2008 Power Tools. One of the features that is available in the Power Tools is Windows Explorer integration, so you can get/checkout/checkin by right clicking the file(s).
Your other choices are to use the VS2008 / TFS 2008 client to do your SCM operations (which means you need to switch between multiple IDEs), or you could use the TF.EXE command line to do your SCM operations.
If I misread your question and you're asking how do you get your legacy code into TFS, you'll need to go into the TFS 2008 client and do the following:
Map a workspace to a folder on your hard drive (or network).
Copy your source to the folder.
In TFS 2008, click on the "Add Files" button.
Select the folder you just copied everything into.
Add them.
Check in.