[00:00:00] Build started [00:00:00] git config --global core.autocrlf true [00:00:00] git clone -q --branch=master https://github.com/rpprimus/dotnetcore2.git C:\projects\dotnetcore2 [00:00:01] git checkout -qf b2a4d8893e684af02ac500d8f6bd81a94539d43e [00:00:01] dotnet --version [00:00:02] 5.0.302 [00:00:02] dotnet restore [00:00:04] Determining projects to restore... [00:00:04] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.2' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\projects\dotnetcore2\CompanyManagement\CompanyManagement.csproj] [00:00:04] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.2' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\projects\dotnetcore2\CompanyManagement.Test\CompanyManagement.Test.csproj] [00:00:05] Restored C:\projects\dotnetcore2\CompanyManagement\CompanyManagement.csproj (in 425 ms). [00:00:11] Restored C:\projects\dotnetcore2\CompanyManagement.Test\CompanyManagement.Test.csproj (in 5.66 sec). [00:00:11] nuget restore [00:00:12] MSBuild auto-detection: using msbuild version '16.10.2.30804' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin'. [00:00:17] Committing restore... [00:00:17] Committing restore... [00:00:17] Assets file has not changed. Skipping assets file writing. Path: C:\projects\dotnetcore2\CompanyManagement.Test\obj\project.assets.json [00:00:17] Assets file has not changed. Skipping assets file writing. Path: C:\projects\dotnetcore2\CompanyManagement\obj\project.assets.json [00:00:17] Restored C:\projects\dotnetcore2\CompanyManagement.Test\CompanyManagement.Test.csproj (in 168 ms). [00:00:17] Restored C:\projects\dotnetcore2\CompanyManagement\CompanyManagement.csproj (in 168 ms). [00:00:17] [00:00:17] NuGet Config files used: [00:00:17] C:\Users\appveyor\AppData\Roaming\NuGet\NuGet.Config [00:00:17] C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.FallbackLocation.config [00:00:17] C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config [00:00:17] C:\Program Files (x86)\NuGet\Config\Xamarin.Offline.config [00:00:17] [00:00:17] Feeds used: [00:00:17] C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\ [00:00:17] https://api.nuget.org/v3/index.json [00:00:17] All projects are up-to-date for restore. [00:00:17] dotnet publish ./CompanyManagement/CompanyManagement.csproj [00:00:18] Microsoft (R) Build Engine version 16.10.2+857e5a733 for .NET [00:00:18] Copyright (C) Microsoft Corporation. All rights reserved. [00:00:18] [00:00:18] Determining projects to restore... [00:00:18] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.2' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\projects\dotnetcore2\CompanyManagement\CompanyManagement.csproj] [00:00:18] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.2' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\projects\dotnetcore2\CompanyManagement\CompanyManagement.csproj] [00:00:18] All projects are up-to-date for restore. [00:00:18] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.2' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\projects\dotnetcore2\CompanyManagement\CompanyManagement.csproj] [00:00:21] CompanyManagement -> C:\projects\dotnetcore2\CompanyManagement\bin\Any CPU\Release\netcoreapp2.2\CompanyManagement.dll [00:00:21] CompanyManagement -> C:\projects\dotnetcore2\CompanyManagement\bin\Any CPU\Release\netcoreapp2.2\publish\ [00:00:21] choco install "sonarscanner-msbuild-net46" -y [00:00:22] Chocolatey v0.10.15 [00:00:22] Installing the following packages: [00:00:22] sonarscanner-msbuild-net46 [00:00:22] By installing you accept licenses for the packages. [00:00:23] [00:00:23] Progress: Downloading sonarscanner-msbuild-net46 5.2.2.33595... 19% [00:00:23] Progress: Downloading sonarscanner-msbuild-net46 5.2.2.33595... 56% [00:00:23] Progress: Downloading sonarscanner-msbuild-net46 5.2.2.33595... 94% [00:00:23] Progress: Downloading sonarscanner-msbuild-net46 5.2.2.33595... 100% [00:00:23] [00:00:23] sonarscanner-msbuild-net46 v5.2.2.33595 [Approved] [00:00:23] sonarscanner-msbuild-net46 package files install completed. Performing other installation steps. [00:00:25] Downloading sonarscanner-msbuild-net46 [00:00:25] from 'https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/5.2.2.33595/sonar-scanner-msbuild-5.2.2.33595-net46.zip' [00:00:25] [00:00:25] Progress: 1% - Saving 13.39 KB of 1.17 MB [00:00:25] Progress: 2% - Saving 26.71 KB of 1.17 MB [00:00:25] Progress: 3% - Saving 40.1 KB of 1.17 MB [00:00:25] Progress: 4% - Saving 53.36 KB of 1.17 MB [00:00:25] Progress: 6% - Saving 81.48 KB of 1.17 MB [00:00:25] Progress: 19% - Saving 240 KB of 1.17 MB [00:00:25] Progress: 33% - Saving 400 KB of 1.17 MB [00:00:25] Progress: 45% - Saving 547.75 KB of 1.17 MB [00:00:25] Progress: 58% - Saving 697.87 KB of 1.17 MB [00:00:25] Progress: 71% - Saving 857.87 KB of 1.17 MB [00:00:25] Progress: 83% - Saving 1008 KB of 1.17 MB [00:00:25] Progress: 96% - Saving 1.13 MB of 1.17 MB [00:00:25] Progress: 100% - Completed download of C:\Users\appveyor\AppData\Local\Temp\1\chocolatey\sonarscanner-msbuild-net46\5.2.2.33595\sonar-scanner-msbuild-5.2.2.33595-net46.zip (1.17 MB). [00:00:25] Download of sonar-scanner-msbuild-5.2.2.33595-net46.zip (1.17 MB) completed. [00:00:28] Hashes match. [00:00:29] Extracting C:\Users\appveyor\AppData\Local\Temp\1\chocolatey\sonarscanner-msbuild-net46\5.2.2.33595\sonar-scanner-msbuild-5.2.2.33595-net46.zip to C:\ProgramData\chocolatey\lib\sonarscanner-msbuild-net46\tools... [00:00:29] C:\ProgramData\chocolatey\lib\sonarscanner-msbuild-net46\tools [00:00:30] ShimGen has successfully created a shim for SonarScanner.MSBuild.exe [00:00:30] ShimGen has successfully created a shim for SonarScanner.MSBuild.TFSProcessor.exe [00:00:30] The install of sonarscanner-msbuild-net46 was successful. [00:00:30] Software installed to 'C:\ProgramData\chocolatey\lib\sonarscanner-msbuild-net46\tools' [00:00:30] [00:00:30] Chocolatey installed 1/1 packages. [00:00:30] See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). [00:00:30] SonarScanner.MSBuild.exe begin /k:"Dotnetcore2" /d:"sonar.host.url=https://sonarcloud.io" /o:"rpprimus" /d:"sonar.login=c86fe6180971df694383ad1e8b7a58ba8c5a91dc" [00:00:31] SonarScanner for MSBuild 5.2.2 [00:00:31] Using the .NET Framework version of the Scanner for MSBuild [00:00:31] Pre-processing started. [00:00:31] Preparing working directories... [00:00:31] 10:09:37.767 Updating build integration targets... [00:00:31] 10:09:38.448 Fetching analysis configuration settings... [00:00:33] 10:09:39.638 Provisioning analyzer assemblies for cs... [00:00:33] 10:09:39.638 Installing required Roslyn analyzers... [00:00:34] 10:09:41.173 Provisioning analyzer assemblies for vbnet... [00:00:34] 10:09:41.173 Installing required Roslyn analyzers... [00:00:34] 10:09:41.22 Pre-processing succeeded. [00:00:34] msbuild /verbosity:quiet "CompanyManagement.sln" [00:00:35] Microsoft (R) Build Engine version 16.10.2+857e5a733 for .NET Framework [00:00:35] Copyright (C) Microsoft Corporation. All rights reserved. [00:00:35] [00:00:37] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.2' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\projects\dotnetcore2\CompanyManagement\CompanyManagement.csproj] [00:00:43] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.2' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\projects\dotnetcore2\CompanyManagement.Test\CompanyManagement.Test.csproj] [00:00:46] C:\projects\dotnetcore2\CompanyManagement.Test\EmployeeTests.cs(95,21): warning S2699: Add at least one assertion to this test case. [C:\projects\dotnetcore2\CompanyManagement.Test\CompanyManagement.Test.csproj] [00:00:46] C:\projects\dotnetcore2\CompanyManagement.Test\EmployeeTests.cs(103,21): warning S2699: Add at least one assertion to this test case. [C:\projects\dotnetcore2\CompanyManagement.Test\CompanyManagement.Test.csproj] [00:00:46] C:\projects\dotnetcore2\CompanyManagement.Test\EmployeeTests.cs(112,21): warning S2699: Add at least one assertion to this test case. [C:\projects\dotnetcore2\CompanyManagement.Test\CompanyManagement.Test.csproj] [00:00:46] C:\projects\dotnetcore2\CompanyManagement.Test\InventoryTests.cs(15,21): warning S2699: Add at least one assertion to this test case. [C:\projects\dotnetcore2\CompanyManagement.Test\CompanyManagement.Test.csproj] [00:00:46] C:\projects\dotnetcore2\CompanyManagement.Test\InventoryTests.cs(9,21): warning S2699: Add at least one assertion to this test case. [C:\projects\dotnetcore2\CompanyManagement.Test\CompanyManagement.Test.csproj] [00:00:46] SonarScanner.MSBuild.exe end /d:"sonar.login=c86fe6180971df694383ad1e8b7a58ba8c5a91dc" [00:00:46] SonarScanner for MSBuild 5.2.2 [00:00:47] Using the .NET Framework version of the Scanner for MSBuild [00:00:47] Post-processing started. [00:00:47] 10:09:53.727 10:09:53.727 WARNING: File 'C:\Users\appveyor\.nuget\packages\xunit.runner.visualstudio\2.4.1\build\netcoreapp1.0\xunit.runner.visualstudio.dotnetcore.testadapter.dll' is not located under the root directory 'C:\projects\dotnetcore2' and will not be analyzed. [00:00:47] 10:09:53.727 10:09:53.727 WARNING: File 'C:\Users\appveyor\.nuget\packages\xunit.runner.visualstudio\2.4.1\build\netcoreapp1.0\xunit.runner.reporters.netcoreapp10.dll' is not located under the root directory 'C:\projects\dotnetcore2' and will not be analyzed. [00:00:47] 10:09:53.727 10:09:53.727 WARNING: File 'C:\Users\appveyor\.nuget\packages\xunit.runner.visualstudio\2.4.1\build\netcoreapp1.0\xunit.runner.utility.netcoreapp10.dll' is not located under the root directory 'C:\projects\dotnetcore2' and will not be analyzed. [00:00:47] Calling the TFS Processor executable... [00:00:47] The TFS Processor has finished [00:00:47] Calling the SonarScanner CLI... [00:00:48] INFO: Scanner configuration file: C:\ProgramData\chocolatey\lib\sonarscanner-msbuild-net46\tools\sonar-scanner-4.6.1.2450\bin\..\conf\sonar-scanner.properties [00:00:48] INFO: Project root configuration file: C:\projects\dotnetcore2\.sonarqube\out\sonar-project.properties [00:00:48] INFO: SonarScanner 4.6.1.2450 [00:00:48] INFO: Java 1.8.0_221 Oracle Corporation (64-bit) [00:00:48] INFO: Windows Server 2019 10.0 amd64 [00:00:49] INFO: User cache: C:\Users\appveyor\.sonar\cache [00:00:52] INFO: Scanner configuration file: C:\ProgramData\chocolatey\lib\sonarscanner-msbuild-net46\tools\sonar-scanner-4.6.1.2450\bin\..\conf\sonar-scanner.properties [00:00:52] INFO: Project root configuration file: C:\projects\dotnetcore2\.sonarqube\out\sonar-project.properties [00:00:52] INFO: Analyzing on SonarCloud [00:00:52] INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent) [00:00:53] INFO: Load global settings [00:00:53] INFO: Load global settings (done) | time=742ms [00:00:53] INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu [00:00:53] INFO: User cache: C:\Users\appveyor\.sonar\cache [00:00:53] INFO: Load/download plugins [00:00:53] INFO: Load plugins index [00:00:54] INFO: Load plugins index (done) | time=236ms [00:01:24] INFO: Load/download plugins (done) | time=30819ms [00:01:25] INFO: Loaded core extensions: developer-scanner [00:01:25] INFO: Found an active CI vendor: 'AppVeyor' [00:01:25] INFO: Load project settings for component key: 'Dotnetcore2' [00:01:26] INFO: Process project properties [00:01:26] INFO: Execute project builders [00:01:26] INFO: Execute project builders (done) | time=61ms [00:01:26] INFO: Project key: Dotnetcore2 [00:01:26] INFO: Base dir: C:\projects\dotnetcore2 [00:01:26] INFO: Working dir: C:\projects\dotnetcore2\.sonarqube\out\.sonar [00:01:26] INFO: Load project branches [00:01:26] INFO: Load project branches (done) | time=125ms [00:01:26] INFO: Check ALM binding of project 'Dotnetcore2' [00:01:26] INFO: Detected project binding: NONEXISTENT [00:01:26] INFO: Check ALM binding of project 'Dotnetcore2' (done) | time=125ms [00:01:26] INFO: Load project pull requests [00:01:26] INFO: Load project pull requests (done) | time=126ms [00:01:26] INFO: Load branch configuration [00:01:26] INFO: Load branch configuration (done) | time=0ms [00:01:26] INFO: Load quality profiles [00:01:27] INFO: Load quality profiles (done) | time=299ms [00:01:27] INFO: Load active rules [00:01:31] INFO: Load active rules (done) | time=4430ms [00:01:31] INFO: Organization key: rpprimus [00:01:31] INFO: Indexing files... [00:01:31] INFO: Project configuration: [00:01:32] INFO: Indexing files of module 'CompanyManagement.Test' [00:01:32] INFO: Base dir: C:\projects\dotnetcore2\CompanyManagement.Test [00:01:32] INFO: Test paths: EmployeeTests.cs, InventoryTests.cs, Testdata/EmployeeAgeTestDa... [00:01:32] INFO: Load project repositories [00:01:32] INFO: Load project repositories (done) | time=110ms [00:01:32] INFO: Indexing files of module 'CompanyManagement' [00:01:32] INFO: Base dir: C:\projects\dotnetcore2\CompanyManagement [00:01:32] INFO: Source paths: Employee.cs [00:01:32] INFO: Indexing files of module 'Dotnetcore2' [00:01:32] INFO: Base dir: C:\projects\dotnetcore2 [00:01:32] INFO: 9 files indexed [00:01:32] INFO: 0 files ignored because of scm ignore settings [00:01:32] INFO: Quality profile for cs: Sonar way [00:01:33] INFO: ------------------------------------------------------------------------ [00:01:33] INFO: EXECUTION FAILURE [00:01:33] INFO: ------------------------------------------------------------------------ [00:01:33] INFO: Total time: 45.381s [00:01:33] INFO: Final Memory: 27M/240M [00:01:33] ERROR: Error during SonarScanner execution [00:01:33] ERROR: [00:01:33] [00:01:33] The version of Java (1.8.0_221) you have used to run this analysis is deprecated and we stopped accepting it. [00:01:33] Please update to at least Java 11. You can find more information here: https://sonarcloud.io/documentation/upcoming/ [00:01:33] [00:01:33] ERROR: [00:01:33] INFO: ------------------------------------------------------------------------ [00:01:33] The SonarScanner did not complete successfully [00:01:33] 10:10:40.382 Post-processing failed. Exit code: 1 [00:01:33] Command exited with code 1