This solved my problem. If you are after enforcing code-commenting, then download and install this program. Add the new "policy" that is now available in Source control and restart Visual Studio. Users now have to enter comments.
We notice that if we have a work item check-in policy against a query that has linked/hierarchical work items it fails with an object reference error or that below:
"TF248021: You have specified a query string that is not valid when you use the query method for a flat list of work items. You cannot specify a parameterized query or a query string for linked work items with the query method you specified."
Is this something you plan to support soon?
I have a requirement where I want to apply 2 policies on custom path.
1. Added 2 main policies need to apply
2. Added 2 custom policies need to apply and assign step 1 policy for each custom policy
3. Disable bother main policies to prevent to check twice.
Now when I am trying to do check-in, TFS is only evalulating the 1st policy and not second.
Am I missing any step?
I just installed VS2010 on a new laptop (running Windows 7), then installed TFPT. I have the following problems:
1. In Windows Explorer, I do have a "Team Foundation Server" submenu if I open my context menu, but the icons show no overlays telling me if an item is added, checked out etc.
2. In a dir/file dialog in an external application, I see neither icons nor a "TFS" submenu.
This means I need to have VS2010 open continuously, and the Power Tools are useless to me. Can I do anything about this? I already check the registry as instructed, and found entries for the various TFS overlays.
I have no idea why, but Windows Explorer is now showing "add" icons, but still no "checked-in" or "checked-out" icon overlays. In file dialogs in external application, I still see no TFS submenu and no icon overlays. Anyone?
- Windows allows a maximum of 15 icon overlays in the system even Windows 7 (http://blogs.msdn.com/b/oldnewthing/archive/2009/12/09/9934348.aspx for more information on that and why)
- So basically the shell respects the first 15 icon overlays in the system (sorted in alphabetical order)
- To find the icon overlays in the system you can go to “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\ShellIconOverlayIdentifiers” on your machine and figure out how many overlays are installed
- If you have dropbox, groove or tortoise SVN installed the number of overlays intalled in the system will exceed 15. But windows will only respect the fist 15 in alphabetical order. We name our overlays “TfsOverlayAdd”, “TfsOverlayEdit” etc. and Tortoise SVN name their overlays “1TortoiseNormal”, “2TortoiseModified” etc. So alphabetically they come as top as possible in the list. And we usually end up being bumped down the list and thus a subset or all of overlays might not work if Tortoise SVN or drop box are installed.
To fix the problem using a hacky solution you can:
1- Open the registry
2- Go to : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\ShellIconOverlayIdentifiers
3- Rename our icon overlays to “1TfsOverlayAdd” , “2TfsOverlayEdit” etc. to bump us up the list
4- Restart the machine or kill explorer.exe and restart it
I didn't get any icon overlays. Looked in the registry key you recommended and there were only 10 entries, none of which were part of TFPT. Had a friend send me the strings from his registry where the TFPT successfully installed and none of the associated CLSIDs had been registered in my registry. I think I need to uninstall and reinstall.
Thanks Youhana, that worked like a charm although in Windows 7 the upper limit appears to be 10 icon overlays, not 15.
This leaves my second and more pressing problem:
In a dir/file dialog in an external application, I see neither icons nor a "Team Foundation Server" submenu. This means I need to have VS2010 or Windows Explorer open continuously, and the Power Tools are useless to me. Can I do anything about this?
As mentioned at http://social.msdn.microsoft.com/Forums/en-US/tfspowertools/thread/114a6df7-0ac8-416c-9b55-262852d0fb23, it looks like the August 2011 edition of the TFS Power Tools has broken using custom check-in policies with the auto-install feature of the TFS Power Tools. I imagine this is going to affect many TFS Power Tool users. Any idea if an emergency hotfix will be released to address this issue?
In this version when I use the search dialog "Find in Source Control" and look for a status "Display all checked out" it returns all the checked out files properly. Then if I'd like to limit be a user in "Display files checked out to" and enter a user name as appeared in the previous search then it always returnsa an emply list.
We use TFS2010. Please advise how to troubleshoot it.
I have the same issue. TFS Power Tools installed on client, Win XP SP3. I search for files checked out to user that has files checked out and it doesn't find them. I have tried with and without entries in the WildCard field.
I am unable to apply a template to a selected set of items within a query now. Is there something that needs to be done specifically?
Here is what I did:
1. Write a query (not saved) to return all the bugs
2. Right click and capture a template (named it, selected fields, etc)
3. Selected items in the query
I cannot apply by right-clicking on the template, nor on the query. Apply Default is also not enabled, even though I set the tempalte I created to the default one.
When I create a new item, it appears to use the template. Anyone have any ideas what the problem could be?
Has anyone successfully recovered team foundation server 2010 and windows sharepoint services to new hardware. I have tried it using this tool and manually using http://msdn.microsoft.com/en-us/library/ms404869%28v=VS.100%29.aspx and got nowhere.
If anyone has some step by step documentation that works, please could they point me in the right direction.
Sorry if already discussed (there does not seem to be a discussion search), but would be very handy to include "out-of-date" as an overlay in explorer. Then once it's added, the next really handy feature is a configurable "refresh" period, or at minimum a hot-key association to the refresh submenu option. Having to drill up to the parent folder, right-click TFS | Refresh gets real tedius.