I just got this error but not using Jenkins - just through the Visual Studio nuget package manager.
For me closing Visual Studio, reopening it and performing a rebuild fixed it.
Version I'm using is:
Microsoft Visual Studio Professional 2022 (64-bit) - Preview
Version 17.12.0 Preview 2.1