barnhill / barcodelib

C# Barcode Image Generation Library
Apache License 2.0
736 stars 239 forks source link

During build: libSkiaSharp.dylib could not be found #210

Closed vrapp closed 2 months ago

vrapp commented 3 months ago

Whenever I build the project using BarcodeStandard in Visual Studio in Windows (same in 2017 and 2022), there's warning:

The referenced component 'c:\users\myusername\projects\thisproject\packages\SkiaSharp.NativeAssets.macOS.2.88.8\build\net462....\runtimes\osx\native\libSkiaSharp.dylib' could not be found.

In fact this file does seem to exist and is found during the build, according to Process Monitor: 1

If it's related to MacOS, maybe it would be possible to somehow conditionally exclude it from the NuGet package.

barnhill commented 2 months ago

Not sure but Im compiling it on a windows machine and dont seem to have any issues. Would you be willing to take a look at this issue for mac builds?

barnhill commented 2 months ago

looks like its an invalid reference which I just removed and it builds just fine with no more warning. Going to update it and the dependencies now and republish a new version up to nuget

barnhill commented 2 months ago

addressed this issue here: https://github.com/barnhill/barcodelib/pull/211

barnhill commented 2 months ago

This should now be fixed in 3.1.4 that has just been uploaded to NuGet and will be available as soon as they run their checks on it.

vrapp commented 2 months ago

Thanks! It's fixed.

vrapp commented 2 months ago

...spoke too soon. It's back. I removed NuGet package from the solution as well as all skiasharp packages . Deleted everything in bin and obj folders. Searched for all files with "libSkiaSharp.dylib" inside in the project folder and ensured there's nothing. Re-added NuGet package of Barcodelib 3.1.4. This brought back Skiasharp, SkiaSharp.NativeAssests.Linux.Dedependencies, SkiaSharp.NativeAssessts.macOS, and the error reappeared.

The referenced component 'C:(...)\packages\SkiaSharp.NativeAssets.macOS.2.88.8\build\net462....\runtimes\osx\native\libSkiaSharp.dylib' could not be found.

barnhill commented 2 months ago

Are you building this in visual studio or jetbrains rider?

vrapp commented 2 months ago

In visual studioVadimOn Aug 22, 2024, at 07:48, Brad Barnhill @.***> wrote: Are you building this in visual studio or jetbrains rider?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>