获取输入 'Artifacts' 的值时发生以下错误:字典中不存在给定的键

The following error occurred while fetching values for input 'Artifacts': The given key was not present in the dictionary

我在将内部 Git 存储库链接到 TFS 2017 中的发布定义时遇到了一些问题。其他内部 Git 存储库没有向我显示相同的消息。

有什么想法吗?

Message when linking Git repo

首先,确保您有足够的权限来访问那个特殊的仓库。


如果您已经拥有相应的权限,但问题仍然存在。可能有什么东西破坏了存储库映射。尝试以下方法解决类似问题。

In the TFS_Collection database there is a tbl_AccessMapping table. That table was empty, no entries. I copied the data from the row in the same table in the TFS_Configuration database that has the PublicAccessMapping moniker. All worked after this entry was created in the TFS_Collection:tbl_AccessMapping table.

Source Link: TFS 2010 - Error "Given key was not present in the dictionary" when opening a connection