SaguiItay

My blog has moved!

You should be automatically redirected in 4 seconds. If not, visit:
http://itaysagui.wordpress.com
and update your bookmarks.

Monday, February 28, 2011

IRibbonExtensibility needs to be ComVisible

When developing an Outlook add-in using VSTO 4, if you are implementing the IRibbonExtensibility interface (for customizing a Ribbon, for example) you might encounter cases where your Ribbon or menu items don't appear in Outlook's UI.
In those cases, you should check the following things first:
  1. Your XML is valid - invalid Ribbon XML, such as placing the node inside the node are common mistakes, which will prevent your controls from appearing
  2. Your class should be marks as ComVisible:
    [ComVisible(true)]
    public class Ribbon : IRibbonExtensibility
    {
       ...
    }

Labels: , , ,

Tuesday, February 8, 2011

TFS: Undo another user's check-out files

In order to undo files that are checked-out by another user, ou can use the TF.EXE command-line tool:

 
tf undo [/workspace:workspacename[;workspaceowner]] [/recursive] itemspec [/noprompt] [/login:username,[password]] [/collection:TeamProjectCollectionUrl]

For example:
tf undo /workspace:MyWorkspace;DOMAIN\Itay /recursive *.* /collection:TeamProject

 
You can find the TF.EXE tool in the following locations:
  • For TFS 2008: C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\TF.exe
  • For TFS 2010: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe

Labels: ,