Skip to content

Warnings generated by SDK files (.targets) are registered as added+removed #258

@twdkeule

Description

@twdkeule

Describe the context

  • Extension: BuildQualityChecks
  • **Environment:**Azure DevOps/Team Foundation Server (on-prem)
    • Server version: 2020
  • Agent type: self-hosted agent
    • Agent version: 2.220.0
  • Pipeline type: yaml pipeline

Describe the problem and expected behavior
Warnings generated by SDK files (.targets) are registered as added and removed while they are the same errors.
The only difference is a part of the path to the pipeline/agent work directory.
Is there a way to ignore these differences?
For source files there is some logic because there only the relative path to the source directory is given ($PATH_TO_TEST_FILE\When_VGZO_Plan480.cs in the example)

Extension tab content

Build all .csproj (2265 warning(s))

  • C:\_builds\Agent1-WS66440\_work\_tool\dotnet\sdk\9.0.300\Microsoft.Common.CurrentVersion.targets: -0 / +13
    • (2434,5) - MSB3276 - Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190. new
  • C:\_builds\Agent2-WS66441\_work\_tool\dotnet\sdk\9.0.300\Microsoft.Common.CurrentVersion.targets: -13 / +0
    • (2434,5) - MSB3276 - Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190. removed
  • $PATH_TO_TEST_FILE\When_VGZO_Plan480.cs: -1 / +1 (Note that this path does NOT contain c:\_builds\$AGENT$\_work\9580\s)
    • (13,37) - CS0436 - The type 'Given_ChargeVGZO' in 'c:\_builds\Agent1-WS66441\_work\9580\s\...\Given_ChargeVGZO.cs' conflicts with the imported type 'Given_ChargeVGZO' in '$ASSEMBLY'. Using the type defined in 'c:\_builds\Agent1-WS66441\_work\9580\s\...\Given_ChargeVGZO.cs'. new*
    • (13,37) - CS0436 - The type 'Given_ChargeVGZO' in 'c:\_builds\Agent2-WS66443\_work\1123\s\...\Given_ChargeVGZO.cs' conflicts with the imported type 'Given_ChargeVGZO' in '$ASSEMBLY'. Using the type defined in 'c:_builds\Agent2-WS66443\_work\1123\s\...\Given_ChargeVGZO.cs'. removed

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions