.Net build failing on jenkins successful build locally

I have using Autofac nuget package in my .net application. Locally build is succesful however on jenkins build giving error Autofac could not be found? Can anyone please guide me to resolve the error

Is the package from a third party nuget repo, or from one of the main ones? Can you share the failure log?

Observability\ContainerRegistration.cs(1,7): error CS0246: The type or namespace name ‘Autofac’ could not be found (are you missing a using directive or an assembly reference?)

Will need more of the build log, for instance the logs during the nuget restore.