【问题标题】:Automapper Failing when take latest from TFS从 TFS 获取最新信息时 Automapper 失败
【发布时间】:2016-05-02 15:58:30
【问题描述】:

我的队友在他的工作站上安装了 AutoMapper 最新版本,使用 nuget 在解决方案中引用的所有项目中。在 package.config 我们可以看到 automapper 的最新版本。它正在建设 正确地在她的机器中。但是当我采取最新的并在我的 机器,Automapper 失败,但我可以在 packages.config 中看到新的 版本。但在参考中,Automapper 显示未找到黄色 图标。

【问题讨论】:

    标签: tfs automapper


    【解决方案1】:

    NuGet 包好像没有恢复 Automapper 成功。

    这个问题可能重复:TFS Can't Restore NuGet Package

    尝试确保将两个包源都添加到您的 NuGet.config 文件中。还要确保两个来源都是“活跃的”。

    <configuration>
        <packageSources>
            <add key="nuget.org"
                 value="https://www.nuget.org/api/v2/" />
            <add key="example.com"
                 value="http://example.com/feed/nuget/" />
        </packageSources>
        <activePackageSource>
            <add key="All"
                 value="(Aggregate source)" />
        </activePackageSource>
    </configuration>
    

    【讨论】:

      猜你喜欢
      • 2017-05-24
      • 1970-01-01
      • 2021-01-13
      • 1970-01-01
      • 2023-03-17
      • 2012-09-24
      • 2013-02-20
      • 2017-03-02
      • 2018-06-13
      相关资源
      最近更新 更多