Replies: 1 comment 2 replies
-
|
Hey! Did you manage to find a solution to this problem? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
In one of my projects, I have an indirect dependency on the
SkiaSharppackage. After this dependency was added, I needed to add the nuget packageSkiaSharp.NativeAssets.Linux.NoDependenciesto make the code work on a linux platform.I added the package conditionally by using the following
Conditionattribute on thePackageReferenceelement in thecsprojfile:$([MSBuild]::IsOSPlatform('Linux')).The consequence is that on a Linux machine, this package will show up in
packages.lock.json, but it does not show up when the build is done on a Windows machine. Aside from the Linux platform, we also build in the OSX platform and a similar conditional package reference was added there too.Is there a better way to approach these OS-dependent package dependencies that would allow us to keep the
packages.lock.jsonconsistent across platforms?Thanks,
Ruben
Beta Was this translation helpful? Give feedback.
All reactions