diff options
| author | ruki <[email protected]> | 2024-12-17 00:34:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-12-17 00:34:31 +0800 |
| commit | 4fe52e2dff1b781fa73c3a4119bc750b8b242db3 (patch) | |
| tree | c02b7413fcd512f458c6d562196ab386d434301f /xmake/modules/package/manager/nuget/find_package.lua | |
| parent | 02879d82807aa8812a7e4967b1dd3597996ab23b (diff) | |
improve to find nuget package
Diffstat (limited to 'xmake/modules/package/manager/nuget/find_package.lua')
| -rw-r--r-- | xmake/modules/package/manager/nuget/find_package.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/nuget/find_package.lua b/xmake/modules/package/manager/nuget/find_package.lua index f766139e0..1dfd5a64d 100644 --- a/xmake/modules/package/manager/nuget/find_package.lua +++ b/xmake/modules/package/manager/nuget/find_package.lua @@ -22,6 +22,7 @@ import("lib.detect.find_file") import("lib.detect.find_tool") import("core.base.option") +import("core.base.json") import("core.project.config") import("core.project.target") @@ -32,4 +33,11 @@ import("core.project.target") -- function main(name, opt) opt = opt or {} + + -- load manifest info + local installdir = assert(opt.installdir, "installdir not found!") + local stubdir = path.join(installdir, "stub") + local manifestfile = path.join(stubdir, "obj", "project.assets.json") + local manifest = json.loadfile(manifestfile) + print(manifest) end |
