When you create an add-in with the wizard and make this call:toolBar = commandBars.Add(Name:="My toolbar", Position:=Microsoft.VisualStudio.CommandBars.MsoBarPosition.msoBarTop, Temporary:=True)you get the exception:"Object must be the same type as the enum. The type passed in was 'Microsoft.VisualStudio.CommandBars.MsoBarPosition'; the enum type was 'Microsoft.VisualStudio.CommandBars.MsoBarPosition'."
Version