.tfignore与2017年不兼容

dev*_*969 3 tfs visual-studio-2017

我见过很少的网络帖子和解决方案,但似乎没有用。我想念明显的东西吗?这就是我所拥有的

在解决方案级别而不是程序包所在的位置,我有一个文件夹,如下图所示

在此处输入图片说明

.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
Run Code Online (Sandbox Code Playgroud)

nuget.config.xml包含

        <?xml version="1.0" encoding="utf-8"?>
        <configuration>
          <solution>
            <add key="disableSourceControlIntegration" value="true" />
          </solution>
        </configuration>
Run Code Online (Sandbox Code Playgroud)

当我尝试在Visual Studio 2017中签入项目时,它仍显示所有包。

有人可以帮我解决我做错的事情吗?

谢谢

Pat*_*SFT 7

根据屏幕截图,您没有使用正确的.tfignore文件。 该文件没有任何后缀。一种创建方式,建议您使用来重命名new.txt文件,"tfignore."它将自动更改为正确的.tfignore文件。

您还可以使用自动自动生成的.tfignore文件,在此处回答以下步骤。

有关该.tfignore文件的更多详细信息,请参阅本教程

注意:.tfignore文件不会与源代码管理中已存在的那些文件发生影响。您需要先从源代码管理中删除它们。另外,请确保您的.tfignore文件已签入源代码管理。