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.
Thank you for your reply. I’m very sorry, but it seems I was mixing up two libraries I was working on. The .NET Standard 2.0 version seems to be working correctly. It’s the .NET Framework 4.6.1 one that produces this warning.
When I create the project and build it initially, the warning does not appear. After restarting Visual Studio, the warning will appear on each consecutive rebuild.
Thanks again!
PS: If you could edit the post title or main post to reflect that the warning occurs in .NET Framework and not .NET Standard, that would be helpful.