如何为常见的 nuget 包文件夹使用 tfignore 文件?
How to us tfignore file for common nuget package folder?
我已按如下方式设置 TFS 源代码管理,以适应多个解决方案中的项目,以使用 NuGet 包还原,而提示路径不会导致问题:
这个 NuGet 存储库结构有效,我的问题是 .tfignore 文件不工作,我需要一些关于如何设置 .tfignore 文件以适应这个 'common repo' 结构的指导。
结构:
Root
|-packages
|-SharedProject
|-Solution1
-Uses SharedProject using Project Reference
|-Solution2
-Uses SharedProject using Project Reference
我尝试过的事情:
.tfignore 根级别的文件,与 "packages" 文件夹同级,我想忽略以下文本:
packages
.tfignore 在每个解决方案根目录中,使用以下文本指向我想忽略的 "packages" 文件夹:
..\packages
将 nuget.config
添加到解决方案根,并将选项 disableSourceControlIntegration
设置为 true。
我已按如下方式设置 TFS 源代码管理,以适应多个解决方案中的项目,以使用 NuGet 包还原,而提示路径不会导致问题:
这个 NuGet 存储库结构有效,我的问题是 .tfignore 文件不工作,我需要一些关于如何设置 .tfignore 文件以适应这个 'common repo' 结构的指导。
结构:
Root
|-packages
|-SharedProject
|-Solution1
-Uses SharedProject using Project Reference
|-Solution2
-Uses SharedProject using Project Reference
我尝试过的事情:
.tfignore 根级别的文件,与 "packages" 文件夹同级,我想忽略以下文本:
packages
.tfignore 在每个解决方案根目录中,使用以下文本指向我想忽略的 "packages" 文件夹:
..\packages
将 nuget.config
添加到解决方案根,并将选项 disableSourceControlIntegration
设置为 true。