Azure管道的CefSharp构建错误:无法加载文件或程序集'CefSharp.Core.dll'

时间:2020-10-13 12:23:25

标签: azure-pipelines cefsharp

我为Windows窗体添加了CefSharp(版本84.4.10.0)。它可以在我的计算机和虚拟机上正常运行。

正如我在Github上发现的那样,我已在项目中添加true,并将Prefare 32位设置为true。但是,当我尝试使用Azure Pipeline-s构建它时,出现错误:

##[error]SGEN(0,0): Error : Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found.
##[debug]Processed: ##vso[task.logissue type=Error;sourcepath=SGEN;linenumber=0;columnnumber=0;code=;]Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found.
SGEN : error : Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found. [D:\a\1\s\SBS_BSales.csproj]

这是我的管道YEMEL

steps:
- task: NuGetToolInstaller@1
  displayName: 'Use NuGet 5.4.0'
  inputs:
    versionSpec: 5.4.0
steps:
- task: NuGetCommand@2
  displayName: 'NuGet restore'
  inputs:
    restoreSolution: '$(Parameters.solution)'
steps:
- task: VSBuild@1
  displayName: 'Build solution **\*.sln'
  inputs:
    solution: '$(Parameters.solution)'
    platform: '$(BuildPlatform)'
    configuration: '$(BuildConfiguration)'
    createLogFile: true

1 个答案:

答案 0 :(得分:1)

Iv已禁用从SGEN XML生成 项目比例->选定的配置版本->构建->输出->生成序列化程序集=否

问题已解决:)

相关问题