我看到了一些网站的帖子和解决方案,但似乎都不起作用。 我错过了什么吗?这就是我的内容。
在解决方案级别而不是包所在的位置上,我有一个文件夹,如下图所示:
.tfignore 文件包含以下内容:
# Ignore NuGet Packages
*.nupkg
# Ignore the NuGet packages folder in the root of the repository. If needed, prefix 'packages'
# with additional folder names if it's not in the same folder as .tfignore.
packages
# Omit temporary files
project.lock.json
project.assets.json
*.nuget.props
nuget.config.xml 包含以下内容:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
</configuration>
当我尝试在Visual Studio 2017中签入项目时,仍然显示所有的包。请问有人能帮忙指出我的错误吗?谢谢。
XX.TXT
,你可以只删除 TXT 而不是.TXT
,并且使用.tfignore
文件,该文件将自动更改为正确的忽略文件。是的,我在谈论你想要排除的文件(例如在你的情况下不检查源代码控制中的包),例如如果你已经在源代码控制中添加了文件 A.CS 并想要排除此文件。即使你已经在.tfignore
文件中添加了文件名,该文件也会出现在待处理更改中。 - PatrickLu-MSFT