2022-11-11T16:08:11.4936740Z ##[section]Starting: Build 2022-11-11T16:08:11.5201904Z ============================================================================== 2022-11-11T16:08:11.5202809Z Task : .NET Core 2022-11-11T16:08:11.5203465Z Description : Build, test, package, or publish a dotnet application, or run a custom dotnet command 2022-11-11T16:08:11.5204175Z Version : 2.210.0 2022-11-11T16:08:11.5204639Z Author : Microsoft Corporation 2022-11-11T16:08:11.5205220Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/dotnet-core-cli 2022-11-11T16:08:11.5265652Z ============================================================================== 2022-11-11T16:08:12.3814934Z [command]C:\Windows\system32\chcp.com 65001 2022-11-11T16:08:12.4015049Z Active code page: 65001 2022-11-11T16:08:12.4067154Z Info: .NET Core SDK/runtime 2.2 and 3.0 are now End of Life(EOL) and have been removed from all hosted agents. If you're using these SDK/runtimes on hosted agents, kindly upgrade to newer versions which are not EOL, or else use UseDotNet task to install the required version. 2022-11-11T16:08:12.4152168Z [command]C:\agents\vsts-agent-win-x64-2.213.1\_work\_tool\dotnet\dotnet.exe build C:\agents\vsts-agent-win-x64-2.213.1\_work\2\s\dotnet\WebApiSolution\WebMvc\WebMvc.csproj "-dl:CentralLogger,\"C:\agents\vsts-agent-win-x64-2.213.1\_work\_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.210.0\dotnet-build-helpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll\"*ForwardingLogger,\"C:\agents\vsts-agent-win-x64-2.213.1\_work\_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.210.0\dotnet-build-helpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll\"" 2022-11-11T16:08:12.4365586Z ##[error]Error: There was an error when attempting to execute the process 'C:\agents\vsts-agent-win-x64-2.213.1\_work\_tool\dotnet\dotnet.exe'. This may indicate the process failed to start. Error: spawn C:\agents\vsts-agent-win-x64-2.213.1\_work\_tool\dotnet\dotnet.exe ENOENT 2022-11-11T16:08:12.4384660Z ##[warning].NET 5 has some compatibility issues with older Nuget versions(<=5.7), so if you are using an older Nuget version(and not dotnet cli) to restore, then the dotnet cli commands (e.g. dotnet build) which rely on such restored packages might fail. To mitigate such error, you can either: (1) - Use dotnet cli to restore, (2) - Use Nuget version 5.8 to restore, (3) - Use global.json using an older sdk version(<=3) to build 2022-11-11T16:08:12.4391392Z Info: Azure Pipelines hosted agents have been updated and now contain .Net 5.x SDK/Runtime along with the older .Net Core version which are currently lts. Unless you have locked down a SDK version for your project(s), 5.x SDK might be picked up which might have breaking behavior as compared to previous versions. You can learn more about the breaking changes here: https://docs.microsoft.com/en-us/dotnet/core/tools/ and https://docs.microsoft.com/en-us/dotnet/core/compatibility/ . To learn about more such changes and troubleshoot, refer here: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/dotnet-core-cli?view=azure-devops#troubleshooting 2022-11-11T16:08:12.4397084Z ##[error]Dotnet command failed with non-zero exit code on the following projects : C:\agents\vsts-agent-win-x64-2.213.1\_work\2\s\dotnet\WebApiSolution\WebMvc\WebMvc.csproj 2022-11-11T16:08:12.4604015Z ##[section]Finishing: Build