代码之家  ›  专栏  ›  技术社区  ›  Bizhan

在TFS中存储NuGet packages文件夹的正确tfignore内容是什么?

  •  0
  • Bizhan  · 技术社区  · 7 年前

    我有一个共同的目标 packages

    这是我的 tfignore

    # NuGet autogenerate files
    
    *.nupkg
    *.nuget.props
    *.nuget.targets
    project.lock.json
    project.assets.json
    
    # Unwanted files (everything except for DLL)
    
    *.js
    *.ps1
    *.p7s
    *.transform
    *.css
    *.eot
    *.svg
    *.ttf
    *.woff
    *.map
    *.xml
    *.xdt
    *.pp
    *.props
    *.rsp
    *.targets
    *.config
    *.ini
    *.txt
    *.rtf
    

    nukpg this answer

    什么是最小和正确的 满足这个目的?

    0 回复  |  直到 7 年前
        1
  •  0
  •   Shayki Abramczyk Cece Dong - MSFT    7 年前

    这个 nukpg 是包,您肯定需要忽略它们,而不是将它们签入TFS(在运行构建期间 nuget restore ).

    微软 here 重新编译这个 .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
    
    # Exclude package target files which may be required for MSBuild, again prefixing the folder name as needed.
    !packages/*.targets
    
    # Omit temporary files
    project.lock.json
    project.assets.json
    *.nuget.props
    
    推荐文章