我正在尝试按照教程创建一个新的Visual Studio项目类型: http://msdn.microsoft.com/en-us/library/vstudio/cc512961.aspx
不幸的是,我得到一个奇怪的例外,说“Guid应该包含32位数字和4个破折号”。
错误出现在某处:
// Launch the aggregate creation process (we should be called back on our
IVsAggregatableProjectFactoryCorrected implementation)
IVsCreateAggregateProject aggregateProjectFactory =IVsCreateAggregateProject)this.Site.GetService(typeof(SVsCreateAggregateProject));
int hr = aggregateProjectFactory.CreateAggregateProject(guidsList, fileName, location, name, flags, ref projectGuid, out project);
if(hr == VSConstants.E_ABORT)
canceled = 1;
ErrorHandler.ThrowOnFailure(hr);
我不知道我做错了什么以及如何调试它。 ErrorHandler只是抛出异常。