Trying to suppress warnings in Azure DevOps pipeline using .NET Core CLI task (DotNetCoreCLI@2), but getting the following error:
MSBUILD : error MSB1001: Unknown switch. Switch: --noWarn:MSB3277
Here is an example of the code, which is similar to how the switch is used in a couple of posts I found related to msbuild cli reference:
- task: DotNetCoreCLI@2
displayName: Release Build
inputs:
command: 'build'
projects: '${{ parameters.solutionPath }}'
arguments: --configuration Release --noWarn:MSB3277
I have tried lowercase --nowarn as well, but still no luck, so any help with this issue would be gratefully appreciated.
Thanks in advance for your support,
Terry