'TimeSpan' is an ambiguous reference between 'System.TimeSpan' and 'System.TimeSpan'

@Andrei_Epure It will take a some time to do some of the troubleshooting steps requested, but here is the info you requested I can give you right away.

The first occurrence of the issue was February 17, 18:30 UTC. The build prior to the that was successful, and it ran on February 16, 16:43 UTC.

We have failed builds using two versions of the windows-2022 VM image. On has MSBuild 17.0.x, the other has 17.1.x. Images in question 20220207.1 and 20220227.1.

Based on the VM image information above, this does not appear to be a direct result of MSBuild 17.1

We had come across this in another unrelated thread and attempted adding it to the project in question. The issue continued to persist.

I have not run dotnet-scanner locally, but I will give it a try and post the results once complete.