我正在尝试使用Azure Pipelines为我的图书馆设置CI。我已经运行了.NET Framework测试,但是.NET Core框架目标抛出了以下错误。
System.IO.FileNotFoundException: Could not load file or assembly 'nunit.framework' or one of its dependencies. The system cannot find the file specified.
似乎出现此错误是由于https://github.com/nunit/nunit/issues/2713#issuecomment-365932475中提到的复制.NET Core依赖项的方式。
我的yml文件的测试部分如下。
- task: VSTest@2
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
vsTestVersion: '16.0'
我的问题是,在.NET Core上使用nunit进行测试时,Azure Pipelines yml文件中应该包含哪些内容?