Reputation: 1999
I have a line of code which builds in VS2019... but fails when I try and build it using azure devops pipelines.
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
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