The type or namespace name 'Serilog' could not be found (are you missing a using directive or an assembly reference?)

Hi All,

Jenkins setup: LTS 2.440.2 version
When building code for dotnet .sln file through MSBuild from Jenkins Build Job, getting below error:
“\SlaveNode\Jenkins\workspace\Test_RPA_ysa_reimagine_sharedrive_cleanup_service\YSA.Enrichment\Utilities\UtilitiesBase.cs(7,7): error CS0246: The type or namespace name ‘Serilog’ could not be found (are you missing a using directive or an assembly reference?) [\SlaveNode\Jenkins\workspace\Test_RPA_ysa_reimagine_sharedrive_cleanup_service\YSA.Enrichment\Utilities\Utilities.csproj]”

However we have added references in project file of code. Can you please help in resolving this error.

Regards,
Syed