Beakie
Beakie

Reputation: 1999

Build succeeds in VS2019, but fails on Azure DevOps

I have a line of code which builds in VS2019... but fails when I try and build it using azure devops pipelines.

enter image description here

enter image description here

It was added by one of my team.

I actually thought this to be disallowed. I believe naming arguments must be applied, from the first named, to the last parameter?

But VS2019 allows it?

Any thoughts?

Upvotes: 3

Views: 398

Answers (1)

Beakie
Beakie

Reputation: 1999

After checking the YAML, I can see the VS version is incorrect.

Build YAML

  PublishProfile: 'VSORelease'

steps:
- task: VSBuild@1
  displayName: 'Build solution Retailer.sln'
  inputs:
    solution: Retailer.sln
    vsVersion: 14.0
    msbuildArgs: '/p:DeployOnBuild=true /p:PublishProfile="$(PublishProfile)"'
    platform: '$(BuildPlatform)'
    configuration: '$(BuildConfiguration)'

Upvotes: 1

Related Questions