У меня одно решение с несколькими проектами.
Проект DSS.DMN.Client зависит от других проектов (есть ссылки)
Так выглядят мои файлы yaml
- task: MSBuild@1
displayName: 'Build solution Client'
inputs:
platform: anyCPU
maximumCpuCount: true
configuration: 'Integration'
solution: DSS.DMN.Client
- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: '**\bin\**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
дело в том, что у клиента есть конфигурация как INT, но два других зависимых проекта имеют конфигурацию отладки.
теперь, когда я запускаю сборку, я получаю сообщение об ошибке:
##[error]C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(777,5): Error : The OutputPath property is not set for project 'DSS.DMN.AVModule.csproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='INT' Platform='AnyCPU'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project.
проблема в том, что сборка пытается найти конфигурацию INT для проекта для DSS.DMN.AVModule.csproj, хотя у него есть только конфигурация отладки.
вопрос: Как обеспечить различную конфигурацию в моем конвейере сборки для разных проектов в одной сборке?