Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否可以提供仅有动态库的多系统环境下的nuget包 #180

Open
axojhf opened this issue Feb 3, 2024 · 4 comments
Open

是否可以提供仅有动态库的多系统环境下的nuget包 #180

axojhf opened this issue Feb 3, 2024 · 4 comments

Comments

@axojhf
Copy link

axojhf commented Feb 3, 2024

Is your feature request related to a problem? Please describe.
做.NET的Binding,准备尝试自动处理mdk依赖库,现存的那个nuget包含了很多可执行文件之类的,包体积相对较大,可否提供仅含有动态库nuget包方便只需要动态库的情况。
另外,之后可能会有跨平台(Linux等)的想法,可否把其他端的包也一起打包成nuget

Describe the solution you'd like
可以参考Avalonia.Angle.Windows.Natives的打包文件夹样式
image
还有SkiaSharp.NativeAssets.LinuxSkiaSharp.NativeAssets.Android
image
image

Describe alternatives you've considered
如果大佬觉得很麻烦,可否允许我重新打包并在nuget分发

Additional context

@wang-bin
Copy link
Owner

wang-bin commented Feb 3, 2024

好,不过那几个exe应该也不大,大的是pdb和ffmpeg。其他平台的我研究下怎么加,是每个平台一个包还是一个包含所有平台?

@axojhf
Copy link
Author

axojhf commented Feb 3, 2024

好,不过那几个exe应该也不大,大的是pdb和ffmpeg。其他平台的我研究下怎么加,是每个平台一个包还是一个包含所有平台?

按照我看到的.NET生态包装的native包,大部分好像是一个操作系统一个包,不过放在一起貌似也没有太大的问题

@axojhf
Copy link
Author

axojhf commented Feb 3, 2024

https://github.com/axojhf/MDK.NativeAssets
我整了个Demo,可以正常打包。不过是使用dotnet cli打包的,nuget cli打包会报错😂

@wang-bin
Copy link
Owner

wang-bin commented Feb 4, 2024

看了下SkiaSharp,每个平台单独打包SkiaSharp.NativeAssets,但是好像SkiaSharp这个包依赖各个平台的NativeAssets然后安装的时候都装上了。你会改的话fork一下试试,我最近没时间

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants