c# - 已安装SpecFlow.Allure,但在服务器上不起作用

标签 c# gradle specflow allure .net-standard-2.0

我在本地使用SpecFlow Allure遇到问题,但在服务器上无法正常工作。我有Windows 2008服务器,我使用.tpl文件进行gradle。当我添加到我的tpl
与app.config上的设置相同
`

 <plugins>    
    <add name="Allure" type="Runtime"/></plugins><stepAssemblies>
      <stepAssembly assembly="Allure.SpecFlowPlugin"/>
    </stepAssemblies>`

但我的服务器显示此错误:
System.IO.FileNotFoundException : Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

Ofc,如果我从.tpl文件中删除了有关Allure的信息,则该信息有效,但未创建我的报告。您知道如何使用它吗?

干杯,

最佳答案

这不是关于魅力,而是关于.net标准2.0支持。请确保您的Jenkins代理能够构建.net std 2.0项目。

关于c# - 已安装SpecFlow.Allure,但在服务器上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47864420/

相关文章:

gradle - 创建在任务列表中不可见的私有(private) Gradle 任务

nunit - SpecFlow 错误地使用 NUnit

c# - 如何使用 SpecFlow 设置个人跟踪/日志记录

c# - 使用 gridview 时引用不明确

c# - 想要通过蓝牙将实时信息从手机传输到自定义应用程序

c# - Entity Framework 6.1.3 : The type 'IdentityDbContext<>' is defined in an assembly that is not referenced

android - Gradle构建错误-com.android.ide.common.internal.loggederrorException无法运行命令

java - 使用自定义类路径在 Gradle 任务中运行 Java 类

c# - 如何在 Specflow 中管理全局变量

C#继承开放泛型编译