Hi guys,
I have a MPF project built to VS extension. I use Visual Studio 2013 update 3.
I want add C# items into Add New Item dialog (Ctrl-Shift-A).
The code is in below:
protected override int AddItemToHierarchy(HierarchyAddType addType)
{
try
{
CCITracing.TraceCall();
IVsAddProjectItemDlg addItemDialog;
string strFilter = string.Empty;
int iDontShowAgain;
uint uiFlags;
IVsProject3 project = (IVsProject3)this.ProjectMgr;
string strBrowseLocations = Path.GetDirectoryName(this.ProjectMgr.BaseURI.Uri.LocalPath);
System.Guid projectGuid = new Guid("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}");
addItemDialog = this.GetService(typeof(IVsAddProjectItemDlg)) as IVsAddProjectItemDlg;
if (addType == HierarchyAddType.AddNewItem)
{
uiFlags = (uint)(__VSADDITEMFLAGS.VSADDITEM_AddNewItems | __VSADDITEMFLAGS.VSADDITEM_SuggestTemplateName | __VSADDITEMFLAGS.VSADDITEM_AllowHiddenTreeView);
}
else
{
uiFlags = (uint)(__VSADDITEMFLAGS.VSADDITEM_AddExistingItems | __VSADDITEMFLAGS.VSADDITEM_AllowMultiSelect | __VSADDITEMFLAGS.VSADDITEM_AllowStickyFilter);
}
ErrorHandler.ThrowOnFailure(addItemDialog.AddProjectItemDlg(this.ID, ref projectGuid, project, uiFlags, string.Empty, string.Empty, ref strBrowseLocations, ref strFilter, out iDontShowAgain)); /*&fDontShowAgain*/
}
catch (Exception ex)
{
if (ex is NotImplementedException == false)
throw ex;
}
return VSConstants.S_OK;
}With previous VS version, everything work fined.
But with VS 2013 update 3, nothing appears on Installed.
I really confuse I don't know what's my wrong or it is VS2013 U3's limitation, please help me.
Thanks and best regards, David