VSTS生成管道无法找到Nuget DLL

时间:2018-11-02 19:25:29

标签: selenium azure-devops mstest runsettings

在VSTS中创建发行版时,我们尝试设置Selenium MSTest运行。但是,当发生构建并且测试程序集尝试运行Test.dll时,它表示找不到testhost.dll。

对我们来说,这意味着找不到我们的测试适配器。

# .NET Desktop
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net

pool:
  vmImage: 'VS2017-Win2016'

variables:
  solution: '**/*.sln'
  buildPlatform: 'Any CPU'
  buildConfiguration: 'Release'

steps:
- task: NuGetToolInstaller@0

- task: NuGetCommand@2
  inputs:
    restoreSolution: '$(solution)'


- task: DotNetCoreInstaller@0
  inputs:
    version: '2.1.300' # replace this value with the version that you need for your project

- task: VSBuild@1
  inputs:
    solution: '$(solution)'
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'

# Publish Build Artifacts
# Publish build artifacts to Azure Artifacts/TFS or a file share
- task: PublishBuildArtifacts@1
  inputs:
    pathtoPublish: '$(Build.SourcesDirectory)'
    artifactName: 'NQAP' 
    publishLocation: 'container'
    #targetPath: '$(Build.SourcesDirectory)'
    #parallel: false # Optional
    #parallelCount: # Optional

上面是我们构建的YML文件,下面是屏幕截图,显示了我们的Release Pipeline。

我们在构建管道YML文件中是否缺少任何内容 enter image description here

下面您将找到错误日志 https://pastebin.com/eqbcubAA

下面是我们的.runSettings https://pastebin.com/r4AYSjfz

是的,我知道我已经注释掉了TestAdaptersPaths。我不确定这个参数。

非常感谢您提供有关YML文件或runSettings的帮助。

0 个答案:

没有答案