microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.47k stars 2.6k forks source link

Multi-framework MSBuild project not logging warnings for additional frameworks #14211

Closed Bouke closed 2 years ago

Bouke commented 3 years ago

Required Information

Question, Bug, or Feature? Bug Type: Incorrect build output

Enter Task Name: VSBuild

Environment

Issue Description

I have a build with the following task

    - task: VSBuild@1
      displayName: Build
      inputs:
        solution: Source/Kolonel.sln
        platform: x64
        configuration: Debug

I'm building a task with multiple framework targets:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFrameworks>net48;net5.0</TargetFrameworks>

This builds fine in Azure DevOps / locally. However the warnings generated by either the compiler or roslyn analyzers don't get logged correctly. When running a non-parallel build, only the logs from the net4.8 target are logged. For parallel builds, I'm not sure what to make of the output.

Task logs

The following is (what I think) the relevant parts of the build output. I've ran the pipeline with system diagnostics, to hopefully aid debugging.

This is the net48 build, happening on lines 1054-1095, notice the existence of `##[warning]``:

2021-01-11T15:02:26.1801149Z ##[debug]Processed: ##vso[task.logdetail id=aa02b1f8-3fca-4a54-8d52-445db72589cf;parentid=924c6e11-f3a7-4634-8080-8fe0ddc57c77;name=BuildingBlocks\Events\src\Abstractions\ThisProject.csproj;type=Build;starttime=2021-01-11T15:02:26.1793049Z;state=InProgress;]
2021-01-11T15:02:26.2131722Z Project "D:\a\1\s\...\OtherProject\OtherProject.csproj" (5:3) is building "D:\a\1\s\...\ThisProject\ThisProject.csproj" (11:5) on node 1 (default targets).
2021-01-11T15:02:26.2133719Z PrepareForBuild:
2021-01-11T15:02:26.2134793Z   Creating directory "bin\x64\Debug\net48\".
2021-01-11T15:02:26.2141032Z   Creating directory "obj\x64\Debug\net48\".
2021-01-11T15:02:26.2498784Z GenerateBindingRedirects:
2021-01-11T15:02:26.2499723Z   No suggested binding redirects from ResolveAssemblyReferences.
2021-01-11T15:02:26.2741555Z SonarQubeCategoriseProject:
2021-01-11T15:02:26.2743116Z   Sonar: (ThisProject.csproj) Categorizing project as test or product code...
2021-01-11T15:02:26.2783558Z   Sonar: (ThisProject.csproj) Project categorized. SonarQubeTestProject=False
2021-01-11T15:02:26.2796386Z CreateProjectSpecificDirs:
2021-01-11T15:02:26.2797961Z   Creating directory "D:\a\1\.sonarqube\conf\4".
2021-01-11T15:02:26.2881659Z SonarQubeImportBeforeInfo:
2021-01-11T15:02:26.2882541Z   Sonar: (ThisProject) SonarQube.Integration.ImportBefore.targets was loaded
2021-01-11T15:02:26.2935118Z CoreCompile:
2021-01-11T15:02:26.2951425Z   C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,1701,1702 /fullpaths /nostdlib+ /platform:x64 /errorreport:prompt /warn:4 /define:TRACE;DEBUG;DEBUG;NETFRAMEWORK;NET48 /highentropyva+ /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Drawing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.IO.Compression.FileSystem.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Net.Http.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Numerics.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Runtime.Serialization.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Xml.Linq.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\x64\Debug\net48\ThisProject.dll /ruleset:D:\a\1\.sonarqube\conf\4\merged.ruleset /errorlog:D:\a\1\s\...\ThisProject\bin\x64\Debug\net48\ThisProject.dll.RoslynCA.json /subsystemversion:6.00 /target:library /warnaserror- /utf8output /deterministic+ /langversion:7.3 /analyzerconfig:D:\a\1\s\.editorconfig /analyzerconfig:obj\x64\Debug\net48\ThisProject.GeneratedMSBuildEditorConfig.editorconfig /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\0\Google.Protobuf.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\0\SonarAnalyzer.CFG.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\0\SonarAnalyzer.CSharp.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\0\SonarAnalyzer.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\1\Google.Protobuf.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\1\SonarAnalyzer.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\1\SonarAnalyzer.VisualBasic.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\2\Google.Protobuf.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\2\Microsoft.AspNetCore.Razor.Language.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\2\SonarAnalyzer.Security.dll /analyzer:D:\a\1\s\Source\packages\idisposableanalyzers\3.4.8\analyzers\dotnet\cs\Gu.Roslyn.Extensions.dll /analyzer:D:\a\1\s\Source\packages\idisposableanalyzers\3.4.8\analyzers\dotnet\cs\IDisposableAnalyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.codeanalysis.bannedapianalyzers\3.3.2\analyzers\dotnet\cs\Microsoft.CodeAnalysis.BannedApiAnalyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.codeanalysis.bannedapianalyzers\3.3.2\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.BannedApiAnalyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.codeanalysis.versioncheckanalyzer\3.3.2\analyzers\dotnet\Microsoft.CodeAnalysis.VersionCheckAnalyzer.dll /analyzer:D:\a\1\s\Source\packages\microsoft.codequality.analyzers\3.3.2\analyzers\dotnet\cs\Humanizer.dll /analyzer:D:\a\1\s\Source\packages\microsoft.codequality.analyzers\3.3.2\analyzers\dotnet\cs\Microsoft.CodeQuality.Analyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.codequality.analyzers\3.3.2\analyzers\dotnet\cs\Microsoft.CodeQuality.CSharp.Analyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.netcore.analyzers\3.3.2\analyzers\dotnet\cs\Microsoft.NetCore.Analyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.netcore.analyzers\3.3.2\analyzers\dotnet\cs\Microsoft.NetCore.CSharp.Analyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.netframework.analyzers\3.3.2\analyzers\dotnet\cs\Microsoft.NetFramework.Analyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.netframework.analyzers\3.3.2\analyzers\dotnet\cs\Microsoft.NetFramework.CSharp.Analyzers.dll /analyzer:D:\a\1\s\Source\packages\stringinterpolationanalyzer\1.0.2\analyzers\dotnet\cs\StringInterpolation.dll /analyzer:D:\a\1\s\Source\packages\stylecop.analyzers\1.1.118\analyzers\dotnet\cs\StyleCop.Analyzers.CodeFixes.dll /analyzer:D:\a\1\s\Source\packages\stylecop.analyzers\1.1.118\analyzers\dotnet\cs\StyleCop.Analyzers.dll /additionalfile:D:\a\1\.sonarqube\conf\cs\SonarLint.xml /additionalfile:D:\a\1\s\Source\stylecop.json /additionalfile:D:\a\1\s\Source\BannedSymbols.txt /additionalfile:D:\a\1\.sonarqube\conf\4\ProjectOutFolderPath.txt Extensions\CurrentPrincipalExtensions.cs IEventHandler.cs IEventPublisher.cs "obj\x64\Debug\net48\.NETFramework,Version=v4.8.AssemblyAttributes.cs" obj\x64\Debug\net48\ThisProject.AssemblyInfo.cs
2021-01-11T15:02:26.2963514Z   Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Roslyn
2021-01-11T15:02:33.2528804Z ##[warning]...\ThisProject\IEventHandler.cs(6,22): Warning CA1040: Avoid empty interfaces
2021-01-11T15:02:33.2531858Z ##[debug]Processed: ##vso[task.logissue type=Warning;sourcepath=D:\a\1\s\...\ThisProject\IEventHandler.cs;linenumber=6;columnnumber=22;code=CA1040;]Avoid empty interfaces
2021-01-11T15:02:33.2536255Z D:\a\1\s\...\ThisProject\IEventHandler.cs(6,22): warning CA1040: Avoid empty interfaces [D:\a\1\s\...\ThisProject\ThisProject.csproj]
2021-01-11T15:02:33.2541892Z ##[warning]...\ThisProject\IEventHandler.cs(10,36): Warning S3246: Add the 'in' keyword to parameter 'TEvent' to make it 'contravariant'.
2021-01-11T15:02:33.2545432Z ##[debug]Processed: ##vso[task.logissue type=Warning;sourcepath=D:\a\1\s\...\ThisProject\IEventHandler.cs;linenumber=10;columnnumber=36;code=S3246;]Add the 'in' keyword to parameter 'TEvent' to make it 'contravariant'.
2021-01-11T15:02:33.2547390Z D:\a\1\s\...\ThisProject\IEventHandler.cs(10,36): warning S3246: Add the 'in' keyword to parameter 'TEvent' to make it 'contravariant'. [D:\a\1\s\...\ThisProject\ThisProject.csproj]
2021-01-11T15:02:33.2555710Z ##[warning]CSC(0,0): Warning CA9998: FxCopAnalyzers package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers.
2021-01-11T15:02:33.2558742Z ##[debug]Processed: ##vso[task.logissue type=Warning;sourcepath=CSC;linenumber=0;columnnumber=0;code=CA9998;]FxCopAnalyzers package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers.
2021-01-11T15:02:33.2561454Z CSC : warning CA9998: FxCopAnalyzers package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers. [D:\a\1\s\...\ThisProject\ThisProject.csproj]
2021-01-11T15:02:33.2569200Z ##[warning]CSC(0,0): Warning CA9998: FxCopAnalyzers package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers.
2021-01-11T15:02:33.2572211Z ##[debug]Processed: ##vso[task.logissue type=Warning;sourcepath=CSC;linenumber=0;columnnumber=0;code=CA9998;]FxCopAnalyzers package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers.
2021-01-11T15:02:33.2576170Z CSC : warning CA9998: FxCopAnalyzers package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers. [D:\a\1\s\...\ThisProject\ThisProject.csproj]
2021-01-11T15:02:33.2582449Z ##[warning]CSC(0,0): Warning CA9998: FxCopAnalyzers package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers.
2021-01-11T15:02:33.2586949Z ##[debug]Processed: ##vso[task.logissue type=Warning;sourcepath=CSC;linenumber=0;columnnumber=0;code=CA9998;]FxCopAnalyzers package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers.
2021-01-11T15:02:33.2589641Z CSC : warning CA9998: FxCopAnalyzers package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers. [D:\a\1\s\...\ThisProject\ThisProject.csproj]
2021-01-11T15:02:33.3230108Z CopyFilesToOutputDirectory:
2021-01-11T15:02:33.3232036Z   Copying file from "D:\a\1\s\...\ThisProject\obj\x64\Debug\net48\ThisProject.dll" to "D:\a\1\s\...\ThisProject\bin\x64\Debug\net48\ThisProject.dll".
2021-01-11T15:02:33.3243374Z   ThisProject -> D:\a\1\s\...\ThisProject\bin\x64\Debug\net48\ThisProject.dll
2021-01-11T15:02:33.3277445Z   Copying file from "D:\a\1\s\...\ThisProject\obj\x64\Debug\net48\ThisProject.pdb" to "D:\a\1\s\...\ThisProject\bin\x64\Debug\net48\ThisProject.pdb".
2021-01-11T15:02:33.3415799Z WriteSonarQubeProjectData:
2021-01-11T15:02:33.3417900Z   Sonar: (ThisProject.csproj) Number of files to analyse: 4. The list of files to be analyzed is in D:\a\1\.sonarqube\out\4\FilesToAnalyze.txt.
2021-01-11T15:02:33.3474621Z   Sonar: (ThisProject.csproj) Project processed successfully
2021-01-11T15:02:33.3481512Z ##[debug]Processed: ##vso[task.logdetail id=aa02b1f8-3fca-4a54-8d52-445db72589cf;parentid=924c6e11-f3a7-4634-8080-8fe0ddc57c77;type=Build;result=Succeeded;finishtime=2021-01-11T15:02:33.3474641Z;progress=100;state=Completed;parentid=924c6e11-f3a7-4634-8080-8fe0ddc57c77;name=;]
2021-01-11T15:02:33.3483563Z Done Building Project "D:\a\1\s\...\ThisProject\ThisProject.csproj" (default targets).
2021-01-11T15:02:33.3501759Z ##[debug]Processed: ##vso[task.logdetail id=486088d4-1e3b-48b1-807d-f714d6001ca8;parentid=924c6e11-f3a7-4634-8080-8fe0ddc57c77;name=BuildingBlocks\KeyValueStore\src\Abstractions\KeyValueStore.Abstractions.csproj;type=Build;starttime=2021-01-11T15:02:33.3494999Z;state=InProgress;]

This is the output (same build / task) for the same project on net5.0 happening on lines 6730-6758, notice the total absence of ##[warning] and ##[debug]:

2021-01-11T15:07:14.4495625Z Project "D:\a\1\s\OtherProject2\OtherProject2.csproj" (10:24) is building "D:\a\1\s\ThisProject\ThisProject.csproj" (11:33) on node 1 (default targets).
2021-01-11T15:07:14.4497546Z PrepareForBuild:
2021-01-11T15:07:14.4498085Z   Creating directory "bin\x64\Debug\net5.0\".
2021-01-11T15:07:14.4498664Z   Creating directory "obj\x64\Debug\net5.0\".
2021-01-11T15:07:14.4503816Z   Creating directory "D:\a\1\s\ThisProject\obj\x64\Debug\net5.0\ref\".
2021-01-11T15:07:14.4505079Z   Creating directory "bin\x64\Debug\net5.0\ref".
2021-01-11T15:07:14.7806107Z SonarQubeCategoriseProject:
2021-01-11T15:07:14.7807904Z   Sonar: (ThisProject.csproj) Categorizing project as test or product code...
2021-01-11T15:07:14.7836990Z   Sonar: (ThisProject.csproj) Project categorized. SonarQubeTestProject=False
2021-01-11T15:07:14.7848671Z CreateProjectSpecificDirs:
2021-01-11T15:07:14.7850278Z   Creating directory "D:\a\1\.sonarqube\conf\22".
2021-01-11T15:07:14.7919861Z SonarQubeImportBeforeInfo:
2021-01-11T15:07:14.7920791Z   Sonar: (Events.Abstractions) SonarQube.Integration.ImportBefore.targets was loaded
2021-01-11T15:07:14.8289885Z CoreCompile:
2021-01-11T15:07:14.8363660Z   C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,1701,1702 /fullpaths /nostdlib+ /platform:x64 /errorreport:prompt /warn:4 /define:TRACE;DEBUG;NET;NET5_0;NETCOREAPP /highentropyva+ /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\Microsoft.CSharp.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\Microsoft.VisualBasic.Core.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\Microsoft.VisualBasic.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\Microsoft.Win32.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\mscorlib.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\netstandard.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.AppContext.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Buffers.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Collections.Concurrent.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Collections.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Collections.Immutable.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Collections.NonGeneric.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Collections.Specialized.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.ComponentModel.Annotations.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.ComponentModel.DataAnnotations.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.ComponentModel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.ComponentModel.EventBasedAsync.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.ComponentModel.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.ComponentModel.TypeConverter.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Configuration.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Console.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Core.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Data.Common.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Data.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Diagnostics.Contracts.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Diagnostics.Debug.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Diagnostics.DiagnosticSource.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Diagnostics.FileVersionInfo.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Diagnostics.Process.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Diagnostics.StackTrace.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Diagnostics.TextWriterTraceListener.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Diagnostics.Tools.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Diagnostics.TraceSource.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Diagnostics.Tracing.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Drawing.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Drawing.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Dynamic.Runtime.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Formats.Asn1.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Globalization.Calendars.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Globalization.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Globalization.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.Compression.Brotli.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.Compression.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.Compression.FileSystem.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.Compression.ZipFile.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.FileSystem.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.FileSystem.DriveInfo.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.FileSystem.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.FileSystem.Watcher.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.IsolatedStorage.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.MemoryMappedFiles.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.Pipes.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.IO.UnmanagedMemoryStream.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Linq.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Linq.Expressions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Linq.Parallel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Linq.Queryable.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Memory.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.Http.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.Http.Json.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.HttpListener.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.Mail.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.NameResolution.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.NetworkInformation.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.Ping.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.Requests.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.Security.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.ServicePoint.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.Sockets.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.WebClient.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.WebHeaderCollection.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.WebProxy.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.WebSockets.Client.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Net.WebSockets.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Numerics.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Numerics.Vectors.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.ObjectModel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Reflection.DispatchProxy.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Reflection.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Reflection.Emit.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Reflection.Emit.ILGeneration.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Reflection.Emit.Lightweight.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Reflection.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Reflection.Metadata.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Reflection.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Reflection.TypeExtensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Resources.Reader.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Resources.ResourceManager.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Resources.Writer.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.CompilerServices.Unsafe.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.CompilerServices.VisualC.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.Handles.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.InteropServices.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.InteropServices.RuntimeInformation.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.Intrinsics.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.Loader.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.Numerics.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.Serialization.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.Serialization.Formatters.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.Serialization.Json.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.Serialization.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Runtime.Serialization.Xml.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Security.Claims.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Security.Cryptography.Algorithms.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Security.Cryptography.Csp.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Security.Cryptography.Encoding.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Security.Cryptography.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Security.Cryptography.X509Certificates.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Security.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Security.Principal.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Security.SecureString.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.ServiceModel.Web.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.ServiceProcess.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Text.Encoding.CodePages.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Text.Encoding.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Text.Encoding.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Text.Encodings.Web.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Text.Json.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Text.RegularExpressions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Threading.Channels.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Threading.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Threading.Overlapped.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Threading.Tasks.Dataflow.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Threading.Tasks.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Threading.Tasks.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Threading.Tasks.Parallel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Threading.Thread.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Threading.ThreadPool.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Threading.Timer.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Transactions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Transactions.Local.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.ValueTuple.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Web.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Web.HttpUtility.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Windows.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Xml.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Xml.Linq.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Xml.ReaderWriter.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Xml.Serialization.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Xml.XDocument.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Xml.XmlDocument.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Xml.XmlSerializer.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Xml.XPath.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\System.Xml.XPath.XDocument.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0\ref\net5.0\WindowsBase.dll" /debug+ /debug:portable /filealign:512 /optimize- /out:obj\x64\Debug\net5.0\ThisProject.dll /refout:obj\x64\Debug\net5.0\ref\ThisProject.dll /ruleset:D:\a\1\.sonarqube\conf\22\merged.ruleset /errorlog:D:\a\1\s\ThisProject\bin\x64\Debug\net5.0\ThisProject.dll.RoslynCA.json /target:library /warnaserror- /utf8output /deterministic+ /langversion:9.0 /analyzerconfig:D:\a\1\s\.editorconfig /analyzerconfig:obj\x64\Debug\net5.0\Events.Abstractions.GeneratedMSBuildEditorConfig.editorconfig /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\0\Google.Protobuf.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\0\SonarAnalyzer.CFG.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\0\SonarAnalyzer.CSharp.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\0\SonarAnalyzer.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\1\Google.Protobuf.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\1\SonarAnalyzer.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\1\SonarAnalyzer.VisualBasic.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\2\Google.Protobuf.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\2\Microsoft.AspNetCore.Razor.Language.dll /analyzer:C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\2\SonarAnalyzer.Security.dll /analyzer:D:\a\1\s\Source\packages\idisposableanalyzers\3.4.8\analyzers\dotnet\cs\Gu.Roslyn.Extensions.dll /analyzer:D:\a\1\s\Source\packages\idisposableanalyzers\3.4.8\analyzers\dotnet\cs\IDisposableAnalyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.codeanalysis.bannedapianalyzers\3.3.2\analyzers\dotnet\cs\Microsoft.CodeAnalysis.BannedApiAnalyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.codeanalysis.bannedapianalyzers\3.3.2\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.BannedApiAnalyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.codeanalysis.versioncheckanalyzer\3.3.2\analyzers\dotnet\Microsoft.CodeAnalysis.VersionCheckAnalyzer.dll /analyzer:D:\a\1\s\Source\packages\microsoft.codequality.analyzers\3.3.2\analyzers\dotnet\cs\Humanizer.dll /analyzer:D:\a\1\s\Source\packages\microsoft.codequality.analyzers\3.3.2\analyzers\dotnet\cs\Microsoft.CodeQuality.Analyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.codequality.analyzers\3.3.2\analyzers\dotnet\cs\Microsoft.CodeQuality.CSharp.Analyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.netcore.analyzers\3.3.2\analyzers\dotnet\cs\Microsoft.NetCore.Analyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.netcore.analyzers\3.3.2\analyzers\dotnet\cs\Microsoft.NetCore.CSharp.Analyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.netframework.analyzers\3.3.2\analyzers\dotnet\cs\Microsoft.NetFramework.Analyzers.dll /analyzer:D:\a\1\s\Source\packages\microsoft.netframework.analyzers\3.3.2\analyzers\dotnet\cs\Microsoft.NetFramework.CSharp.Analyzers.dll /analyzer:D:\a\1\s\Source\packages\stringinterpolationanalyzer\1.0.2\analyzers\dotnet\cs\StringInterpolation.dll /analyzer:D:\a\1\s\Source\packages\stylecop.analyzers\1.1.118\analyzers\dotnet\cs\StyleCop.Analyzers.CodeFixes.dll /analyzer:D:\a\1\s\Source\packages\stylecop.analyzers\1.1.118\analyzers\dotnet\cs\StyleCop.Analyzers.dll /additionalfile:D:\a\1\.sonarqube\conf\cs\SonarLint.xml /additionalfile:D:\a\1\s\Source\stylecop.json /additionalfile:D:\a\1\s\Source\BannedSymbols.txt /additionalfile:D:\a\1\.sonarqube\conf\22\ProjectOutFolderPath.txt Extensions\CurrentPrincipalExtensions.cs IEventHandler.cs IEventPublisher.cs "obj\x64\Debug\net5.0\.NETCoreApp,Version=v5.0.AssemblyAttributes.cs" obj\x64\Debug\net5.0\Events.Abstractions.AssemblyInfo.cs
2021-01-11T15:07:14.8432066Z   Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Roslyn
2021-01-11T15:07:22.3230573Z D:\a\1\s\ThisProject\IEventHandler.cs(6,22): warning CA1040: Avoid empty interfaces [D:\a\1\s\ThisProject\ThisProject.csproj]
2021-01-11T15:07:22.3238587Z D:\a\1\s\ThisProject\IEventHandler.cs(10,36): warning S3246: Add the 'in' keyword to parameter 'TEvent' to make it 'contravariant'. [D:\a\1\s\ThisProject\ThisProject.csproj]
2021-01-11T15:07:22.3273431Z CSC : warning CA9998: FxCopAnalyzers package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers. [D:\a\1\s\ThisProject\ThisProject.csproj]
2021-01-11T15:07:22.3277562Z CSC : warning CA9998: FxCopAnalyzers package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers. [D:\a\1\s\ThisProject\ThisProject.csproj]
2021-01-11T15:07:22.3281091Z CSC : warning CA9998: FxCopAnalyzers package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK. Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers. [D:\a\1\s\ThisProject\ThisProject.csproj]
2021-01-11T15:07:22.5177646Z CopyFilesToOutputDirectory:
2021-01-11T15:07:22.5179080Z   Copying file from "D:\a\1\s\ThisProject\obj\x64\Debug\net5.0\ThisProject.dll" to "D:\a\1\s\ThisProject\bin\x64\Debug\net5.0\ThisProject.dll".
2021-01-11T15:07:22.5189032Z   Events.Abstractions -> D:\a\1\s\ThisProject\bin\x64\Debug\net5.0\ThisProject.dll
2021-01-11T15:07:22.5199295Z   Copying file from "D:\a\1\s\ThisProject\obj\x64\Debug\net5.0\ThisProject.pdb" to "D:\a\1\s\ThisProject\bin\x64\Debug\net5.0\ThisProject.pdb".
2021-01-11T15:07:22.5603263Z WriteSonarQubeProjectData:
2021-01-11T15:07:22.5605047Z   Sonar: (ThisProject.csproj) Number of files to analyse: 4. The list of files to be analyzed is in D:\a\1\.sonarqube\out\22\FilesToAnalyze.txt.
2021-01-11T15:07:22.5660180Z   Sonar: (ThisProject.csproj) Project processed successfully
2021-01-11T15:07:22.5662938Z Done Building Project "D:\a\1\s\ThisProject\ThisProject.csproj" (default targets).

As said the parallel build is very messy and difficult to read.

Absence of the ##[warning] makes DevOps not pick up the warnings and causes other tools (like Build Quality Checks) unable to pick up these warnings, causing our software quality to degrade.

Bouke commented 3 years ago

Running parallel builds gives highly random ##[warning] counts between builds:

Build 16056: 5542 out of 5838 Build 16055: 5347 out of 5838 Build 16057: 5428 out of 5838

Maybe some sort of race-condition inside the logger?

Bouke commented 3 years ago

When building locally with the distributed logger (msbuild -dl:"CentralLogger,Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll*ForwardingLogger,Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"), the warnings reported don't match the console output from msbuild. So the problem is with this logger, which is hard-coded by the MSBuild / VSBuild tasks.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

Bouke commented 2 years ago

japj commented 2 years ago

Perhaps this will also be fixed as part of #14863

japj commented 2 years ago

The distributed msbuild logger is used in the msbuild and vsbuild agent tasks to communicate the msbuild errors and warnings. There is a bug in it that it doesn’t correctly report #errors and #warnings to Azure DevOps. If you have a binlog (and can provide it to the right Microsoft people) they can probably replay the log to determine if it is the same problem

DenisRumyantsev commented 2 years ago

Waiting for this PR to be completed and deployed

DenisRumyantsev commented 2 years ago

This issue seems to be a duplicate of #14863, so I am closing it. It should be fixed by #15496. Feel free to provide any related info / ask questions about this issue in #14863.