无法更改架构比较中的目标

Can't change target in schema compare

当我尝试在模式比较中 select 目标(或 select 源)时,我收到 Microsoft .NET Framework 错误:"System.ArgumentException: An item with the same key has already been added." 如果我使用保存的模式比较或制作一个新的。这只是我的一个解决方案中的一个问题,该解决方案是在我们从 TFS/TFVC 移动到 VSTS/Git 时将多个项目合并为一个解决方案而创建的。完整的错误是这样的:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Microsoft.VisualStudio.Data.Tools.Package.SchemaCompare2.UI.SchemaCompareConnectionDialog.PopulateProjectCombos()
   at Microsoft.VisualStudio.Data.Tools.Package.SchemaCompare2.UI.SchemaCompareConnectionDialog..ctor(Boolean isSource, ISchemaCompareParticipant participant)
   at Microsoft.VisualStudio.Data.Tools.Package.SchemaCompare2.UI.SchemaCompareSourceTargetControl.CollectFromConnectionDialog(Boolean isSource)
   at Microsoft.VisualStudio.Data.Tools.Package.SchemaCompare2.UI.SchemaCompareSourceTargetControl.<>c__DisplayClass29_0.<SetupComboBox>b__0(IImageComboBoxItem i)
   at Microsoft.VisualStudio.Data.Tools.Package.SchemaCompare2.UI.SchemaCompareSourceTargetControl.OnSelectionChangeCommitted(Object sender, EventArgs e)
   at System.Windows.Forms.ComboBox.OnSelectionChangeCommitted(EventArgs e)
   at System.Windows.Forms.ComboBox.OnSelectionChangeCommittedInternal(EventArgs e)
   at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ComboBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

问题原来是当我合并项目时添加了两个名为 "Database" 的项目。我重命名了一个,问题就消失了。