gpt4 book ai didi

asp.net - Azure 构建管道 : dotnet build fails with: FileNotFoundException: Could not load file or assembly 'TechTalk. SpecFlow,版本 = 3.1.0.0

转载 作者:行者123 更新时间:2023-12-03 21:58:35 27 4
gpt4 key购买 nike

使用任务 dotnet build 的构建管道开始失败,因为 Build Engine 版本最近从 16.4.0+ 更改为 16.5.0+。

nuget 包 SpecFlow 依赖于库 TechTalk.SpecFlow。

异常看起来像:

C:\Users\VssAdministrator\.nuget\packages\specflow.tools.msbuild.generation\3.1.89\build\SpecFlow.Tools.MsBuild.Generation.targets(93,5): Error MSB4018: The "GenerateFeatureFileCodeBehindTask" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'TechTalk.SpecFlow, Version=3.1.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41'. The system cannot find the file specified.

我所做的调查(没有帮助):
  • 将 SpecFlow 版本升级到最新
  • 使用 3.1 将 SpecFlow 的版本降级到第一个
  • 将程序集 TechTalk.SpecFlow 显式添加到项目
  • 使用自托管构建代理
  • 在文件系统中,TechTalk.SpecFlow 在 3.1.0.0 版中可用

  • 有任何想法吗?

    最佳答案

    这是一个 issue with .NET SDK 3.1.200 .

    作为解决方法,您可以停留在 .NET SDK 3.1.102 直到它被修复 (在 .NET SDK、SpecFlow 或两者中)。

    附加信息:

    https://github.com/SpecFlowOSS/SpecFlow/issues/1912
    https://github.com/dotnet/core/issues/4404#issuecomment-599768237

    关于asp.net - Azure 构建管道 : dotnet build fails with: FileNotFoundException: Could not load file or assembly 'TechTalk. SpecFlow,版本 = 3.1.0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60810625/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com