When adding the NuGet package for GemBox.Pdf (version 15.0.1077) to a .NET Standard 2.0 library, I am getting the following warning when building:
The referenced component ‘C:\Users\icoumans.nuget\packages\gembox.pdf\15.0.1077\buildTransitive\netstandard2.0…\build\netstandard2.0\libpkcs11-mock.a’ could not be found.
To reproduce this, I’ve tried it on a new project, and getting the same warning, with these steps:
- Create a new Class Library project for .NET Standard 2.0
- Add the GemBox.Pdf package
- Build the project
After removing/reinstalling the package, or clearing the NuGet cache, the warning will disappear for one build. For each consecutive build, or when building projects that include the library, the warning will return.
I have found a similar or equal issue from earlier this year, but it seems like it has returned or was not fixed for .NET Standard 2.0: https://forum.gemboxsoftware.com/t/error-msb3341-on-net-5/199