【问题标题】:Build Fails Missing File Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props构建失败缺少文件 Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props
【发布时间】:2015-08-07 19:19:23
【问题描述】:

我有一个全新的 Visual Studio 2015 项目存储在 TFS Git 存储库中。我已经使用标准的默认 Git 构建模板配置了构建。新项目在本地构建很好,但在 TFS 构建期间失败并出现以下错误:

This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props.

【问题讨论】:

    标签: visual-studio tfs msbuild tfsbuild


    【解决方案1】:

    当 TFS 首次创建您的 Git 存储库时,它包含一个默认的 .gitIgnore 文件,该文件从您的(待定)更改窗口中“隐藏”某些文件。默认 .gitIgnore 文件中基于通配符的排除项之一明确排除了在任何包含“build/”的文件夹下签入的任何文件,该文件夹包含此特定文件。目前,我已在文件中注释掉该排除项,现在它显示在我的(待定)更改窗口中。

    【讨论】:

    • 忽略 .gitignore 中的“packages/”(包括不需要的构建文件夹)怎么样?
    猜你喜欢
    • 2017-11-08
    • 2015-07-05
    • 1970-01-01
    • 1970-01-01
    • 2018-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-20
    相关资源
    最近更新 更多