I have bamboo build server. And I try to build there our old project with Target Framework .Net Framework 4.6.1
First step was completed successfully.
nuget restore .\Host.csproj
But I got error on next build step I used MSBuild2019 utility for build project.
And I get error
C:\Program Files\dotnet\sdk\5.0.410\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1064: Package Microsoft.CodeAnalysis.Analyzers, version 1.1.0 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. [C:\Atlassian\Bamboo-home\local-working-dir\216039426\ACLTI-ALBB-JOB1\Host.csproj]
What can be cause of this error?
I am confused by this line
C:\Program Files\dotnet\sdk\5.0.410\Sdks
Why I see sdk 5 ?