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的包 #5911

Closed
heheda123123 opened this issue Dec 1, 2024 · 6 comments
Closed

能否支持nuget的包 #5911

heheda123123 opened this issue Dec 1, 2024 · 6 comments

Comments

@heheda123123
Copy link
Contributor

你在什么场景下需要该功能?

有挺多项目使用nuget的形式下发,有些包单独有写包描述加到xrepo仓库里,
但是还有些比较复杂,官方提供的手动方式也需要把props文件加到项目,如果支持nuget就可以直接引入
https://github.com/MiroKaku/ucxxrt/blob/main/README.zh-CN.md
https://github.com/MiroKaku/Musa.Runtime/blob/main/README.zh-CN.md
https://github.com/Chuyu-Team/VC-LTL5/blob/master/Readme.osc.md

描述可能的解决方案

把nuget作为类似于brew/vcpkg同样的包管理器

描述你认为的候选方案

No response

其他信息

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Can it support nuget packages?

@star-hengxing
Copy link
Contributor

单独作为普通的包管理可以,但里面的逻辑始终要手动翻译到 lua 才能完全可用

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It can be managed as an ordinary package alone, but the logic inside always needs to be manually translated into Lua to be fully usable.

@waruqi
Copy link
Member

waruqi commented Dec 1, 2024

直接 add_requires("nuget::xxx") 么。直接走描述 port 过去,工作量大也没必要。

可以提 pr 到这里,https://github.com/xmake-io/xmake/tree/dev/xmake/modules/package/manager

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Directly add_requires("nuget::xxx")? Just go to the description port. There is no need for a heavy workload.

You can submit PR here, https://github.com/xmake-io/xmake/tree/dev/xmake/modules/package/manager

@waruqi waruqi added this to the v2.9.7 milestone Dec 16, 2024
@waruqi
Copy link
Member

waruqi commented Dec 17, 2024

加上了 #5981

add_requires("nuget::zlib_static", {alias = "zlib"})

target("test")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("zlib")

@waruqi waruqi closed this as completed Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants