【问题标题】:Azure build:are you missing an assembly reference?Azure 构建:您是否缺少程序集参考?
【发布时间】:2019-06-22 23:59:30
【问题描述】:

我的 winforms 应用程序在我的机器上构建正常。

但是当管道尝试构建它时会显示

Error CS0234: The type or namespace name 'Dynamic' does not exist in the namespace 'System.Linq' (are you missing an assembly reference?)
Process 'msbuild.exe' exited with code '1'.

管道包含

pool:
   vmImage: 'windows-2019'

variables:
  solution: '**/*.sln'
  buildPlatform: 'Any CPU'
  buildConfiguration: 'Release'
  Major: '2'
  Minor: '0'
  Patch: '0'

steps:
- task: NuGetToolInstaller@0

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

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

【问题讨论】:

标签: azure-devops .net-4.7.2


【解决方案1】:

我通过删除对 System.Linq.Dynamic 的引用解决了我的问题 原来我不需要它。 我还发现 packages.config 有一个旧版本,我删除了。

【讨论】:

    猜你喜欢
    • 2010-12-08
    • 1970-01-01
    • 2010-10-01
    • 1970-01-01
    • 2019-10-05
    • 2014-05-07
    • 1970-01-01
    • 2020-04-18
    • 1970-01-01
    相关资源
    最近更新 更多