TFS folder browsing - tfs

I'm creating a tool that needs to browse for folders into TFS. In other words, I want the user to be able to select a folder within projects in TFS.
Also I found a method posted by Jeff Bramwell. It does most of the work but I would like to be able to allow the user to select folders within TFS.
Does anybody know how to do it?
Thanks

There's an internal api to popup a dialog, it's not supported but you can use it.
http://msmvps.com/blogs/molausson/archive/2010/10/21/browse-items-in-tfs-version-control-programmatically-reposted.aspx

Related

How to restrict adding solution to source control permission in team foundation server?

We are managing a large group of developers that are developing a variety kinds of projects that use Team Foundation Server , We need to restrict some of the developers permissions and just give them to admins .
In the first place, Add solution to source control should be claimed from developers and it should be available for administrators , they should just be able to have check in and check out permission.
I red following document from Microsoft but couldn't how to set such a permission.
Manage Tfs Project
Update:
What we want to do : developers should fill an application and describe about their new projects they want to be added to source controller and then we make a blank solution and add it to source control, Now developers can add their projects to blank solution and check in their changes.
Hope someone could help me here or refer me to a useful document
I appreciate your attention.
developers can add their projects to blank solution and check in their changes and administrators can click the button Add solution to source control to add the solution, right?
If we want to add the solution to TFS Repos, the steps are: Add your solution to version control->Add a comment and check in the solution, then we could see the solution in TFS
The button Add solution to source control just add the project to mapping folder instead of TFS repo, we could not configure the TFS permission to restrict adding solution to source control.
If we need to restrict check-in permission, we could set the repo or repo folder permission. Check the pic below.

Hiding the folder structure from users in TFS 2013

How do I hide my source folders from users that belong to a particular group? I tried this, but it didn't work for me.
In source control explorer, right click on the folder you want to hide and select Security (under Advanced). There you should be able to set a deny permission for read for the team/group that you want.

Paste screenshot into TFS 2010 Web access for bugs

Is there anyway to automatically paste screenshots into TFS 2010 Web access for bugs? I don't want to have to save the screenshots into files and then add them as an attachment. This takes a while to do this. I just want to quickly add them to the bug.
I don't think you can.
See this similar (possibly not identical) question on MSDN forums:
http://social.msdn.microsoft.com/Forums/en-US/tfsgeneral/thread/fe8b80c9-8fbd-4d6c-bc65-80d75dd3409b/
In response to:
Now, when adding the task into TFS 2010 , I can use the cupboard to “copy/Paste” from OneNote to TFS. But then the image is stored as a link to my local machine and not stored in TFS server.
The answer was (repeatedly stated):
As I said in my previous reply, we should to add the images as attachment into Work Items. Open Work Item in VS, click Attachments tab, then click Add to browse your images, the images will store in TFS Server.
Or, DIY and write an application
TFS exposes an API that you could use to create your own tool, rather than using their web access. See this question for how to implement that particular piece (adding attachments):
Upload a file using TFS Client APIs
In Visual Studio 2010 you can go to the Attachments Tab and paste your screenshot using CTRL-V.
An attachment called 'screenshot.png' will automatically be created.

TFS user can't view history

I have a very strange situation.... After migrating from StarTeam to TFS (using TimlyMigration == awesome) there is one oddity.
When I look at any given file in the Source Control view, I see all the history that was migrated. However if anybody else on the project looks at the file, the don't see the history. it sounds like a permissions issue, but even if I change their group membership adding them to project administrators they still don't get the history.
So I'm wondering if there is perhaps a problem with the resposity, and if there is an internal consistency checker for TFS that I could be running.
Does the history include any renames/moves? TFS permissions are based on paths, so if people don't have rights to the "old" path then they won't see the history entries before the move.
One other thing to look into is the permissions in the source control (assuming you have given permissions to the project).
In the Source Control Explorer right click on the project and select properties. Then select the security tab. Users should not need to be added to this, but I have had to do it in some cases.
Vaccano

Query TFS for updated files

I want to get an overview of files that are updated in TFS (that someone else checked in) that I don't have the latest version for.
In Visual Studio Source Control Explorer, right click on the directory you want to compare, and select "Compare". It will pop up a dialog with a couple of filtering options, and then show you what's out of date.
if they checked them in as part of a single changeset then you can find them that way.
(right click file in solution explorer, view history, double-click on the relevant changeset and you'll see all the related files for that checkin)
Is your question about finding this info via the TFS API via the website, or via the visual studio interface?

Resources