The .Net Framework 4.7.1 MVC Web App Azure Build pipeline fails and give the following error. The Microsoft.Data.SqlClient.SNI.1.1.0 Nuget is updated 3.0.2 in feature branch and when I create pull request the build pipeline fails ad give the following error. Please advise
The solution has many project service layer which target both 4.7.1 and dotnet core 8.0. before it targets 4.7.1 and 6.0 now it migrated 4.7.1 and dotnet core 8.0. since the Microsoft.Data.SqlClient.SNI.1.1.0 is no compatible with 8.0 I have to migrate that to 3.0.2
##[error]Test\Test.csproj(2480,5): Error :
This project references NuGet package(s) that are missing on this computer.
Use NuGet Package Restore to download them.
For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.
The missing file is ..\packages\Microsoft.Data.SqlClient.SNI.1.1.0\build\net46\Microsoft.Data.SqlClient.SNI.targets.
NuGetCommand@2
task to run the "nuget restore
" before the build task?