Team Explorer Everywhere Command Line Client and WorkItems - tfs

Is it possible to manage (create, change state, remove) project WorkItems from TEE CLC?
Looking at help and options, it doesn't seem possible, but eclipse version and SDK clearly make it possible.
A pointer to a doc would be appreciated.

Usually, command lines for managing Work items we are using are witadmin destroywi (destroy work items) and tfpt workitem (create or update work item). But, witadmin command-line tool installs with any version of Visual Studio, and tfpt workitem command-line tool installs with TFS power tools which works with VS client. Neither of them supports Team Explorer Everywhere Command Line Client.
I'm afraid there is no Team Explorer Everywhere Command Line Client command for managing work items.

As CeCe writes, there isn't any cross-platform tool to managed work items similar to witadmin or tfpt. Also, the TEE CLC uses the TFS SDK for Java but the CLC is packaged up in the download for convenience. There should not be a dependency between the plugin and the CLC.

Related

VSTS / TFVC cli for oracle developer

I am an oracle database developer. My organization is using VSTS repos for code storage. For people who are working with Visual studio, it is easy to check in codes. But for Db people, we always have to check-in the code manually by dragging in.
is there any way to connect to vsts repos source control with oracle tool? We are using TFVC as our version control (and not GIT).
According to your comment, seems you are using TFVC as your source control. Assuming you are working on windows platform, check in command should be the one you are looking for.
In the following examples, the %PathToIde% is usually on a path like
this: %ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE, or on
Windows x64: %ProgramFiles(x86)%\Microsoft Visual Studio
10.0\Common7\IDE (depending on Visual Studio version and installation settings).
Example for get:
cd C:\TFS\Arquitectura
"%PathToIde%\TF.exe" get $/Arquitectura/Main /recursive
Example for checkout:
cd C:\TFS\Arquitectura
"%PathToIde%\TF.exe" checkout $/Arquitectura/Main /recursive
Example for checkin:
cd C:\TFS\Arquitectura
"%PathToIde%\TF.exe" checkin $/Arquitectura/Main /recursive
Source Link
If you are working on Linux, take a look at this blog-- Team Foundation Version Control and the Linux Command Line
Sounds like you should look at the TF.exe CLI. This CLI lets you pretty much do everything that you can in the VS GUI.
Here's a link to the Microsoft doc's for TF, Use Team Foundation version control commands

How to integrate TFS in WebStorm?

I'm using Git with WebStorm's version control already, but have to use TFS version control. After some research fond this plugin but there is no tutorial that aiming to configure that plugin.
Can anyone guide me?
You can opt for using git tfs, locally you can still use Git and all of the advantages you're used to. And then push from git to TFVC. You'll need to install Team Explorer or the Team Explorer Cross Platform Commandline Tools.
Or you can use the native plugin for, thelatest version of the TFS / Azure DevOps (Server) plugin can be found on the Jetbrains site. It requires TFS 2015 or newer. You can use the plugin you found for older versions of TFS.
A good explanation to get started can be found here. The part to configure TFVC is replicated below.
Visual Studio Team Services plugin and TFVC
Before starting with TFVC, we need an external tool. The tool in question is TF command line tool. It ships with the Microsoft Team Explorer Everywhere 2015 and you can download it here.
The file we are interested in is TEE-CLC-14.0.3.zip. Download it and unzip it in a folder of your choice. You should end up with something similar to this.
Now, open the command prompt, move into the folder where you have extracted the TF command line tool and run the following:
tf eula /accept
If command succeeded and you haven’t received any error, you are good to go.
Now back to IDEA. Open the settings panel.
and move to Version Control -> TFVC pane. In the select path to executable field, enter the exact path to the tf.cmd command file located in TF command line tool folder.
Once done, press the test button and you should see the following message
Confirm all of the open windows and get back to the IDEA welcome page. Now you are ready to choose Team Services TFVC (Preview) version control.
At this point, same as for Git, you will be prompted about the connection towards your TFS. The following dialog will be shown.
Move to the Team Foundation Server tab and specify the address of your TFS server, then click connect. You will now be prompted for the credentials and if everything is ok, you will be shown the list of available TFVC repositories.
You can now create a new workspace directly from IDEA and start working with your TFVC repositories.

Is there a way to configure Team Explorer Everywhere Checkin Policies via Cross-Platform Command Line?

Right now we are using the Cross-Platform CLI for Team Explorer Everywhere to do work on Linux. I want to have a check-in policy that forces users to add a comment to their checkin. Based on this page https://msdn.microsoft.com/en-us/library/gg475890(v=vs.100).aspx it seems like if I use the web interface or Visual Studio, or Visual Studio Command Line these policies won't apply. However, this page doesn't seem to give any information on how to do it using the command line and I can't find info anywhere else. Is there a way I can do this via the Linux command line or even a standalone app, or do I have to use Eclipse?
The Team Explorer Everywhere (TEE) Command-Line Client (CLC) cannot configure check-in policies and the TEE Eclipse plug-in must be used.

TFS Build Definition - Can you add this to source control?

I would like to add my Build Definitions to TFS Source Control. Is there anyway to do this?
Not really, no. If you're trying to track changes to your build definitions, you can use a couple of new commands in the latest releast of the Team Foundation Power Tools. The first compares two build definitions:
tfpt builddefinition /diff
This one exports a build definition's configuration to a text format, which you could then check into version control.
tfpt builddefinition /dump
Another option via powershell
https://gist.github.com/jstangroome/6747950
which basically uses c# types so should be easy enough to make into a linqpad or c# console app (or winforms or wpf)
used assemblies
Microsoft.TeamFoundation
Microsoft.TeamFoundation.Client
Microsoft.TeamFoundation.Build.Client
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0\Microsoft.TeamFoundation.Build.Workflow.dll

How to programmatically detect deleted files?

In Team Foundation, you can ask Team Explorer to show deleted files by doing this:
Tools > Options > Source Control >
Visual Team Foundation Server > Show
deleted items in the Source Control
Explorer.
My question is how do you do the same thing programmatically?
I am developing a synchronisation tool, and I need to detected deleted files in TFS. Workspace.Get(...) returns only non-deleted files.
Any idea how I can achieve that?
Go to the Visual Studio folder in your start menu and start up a Visual Studio Command Prompt from the "Visual Studio Tools" subfolder.
The command you want to run is:
tf dir /server:myserver $/myproject /recursive /deleted
(where myserver and myproject are your server and project)
use "tf help" for general info, "tfs help dir" for more help on this command, or google on "tf.exe" for more info.
The VersionControlServer.QueryHistory API will give you access to the changesets which will contain all version control operations including deletes.

Resources