我在本地使用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/