Add support of nugetsource for local directory.#2621
Add support of nugetsource for local directory.#2621Jarod42 wants to merge 1 commit intopremake:masterfrom
nugetsource for local directory.#2621Conversation
website/docs/nugetsource.md
Outdated
|
|
||
| Premake 5.0.0-alpha12 or later. | ||
| Nuget "galleries" since Premake 5.0.0-alpha12 or later. | ||
| Local directory since Premake 5.0.0-beta9 or later. |
There was a problem hiding this comment.
5.0.0 -- The next release is 5.0 stable
| nugetsource "https://api.nuget.org/v3/index.json" | ||
| ``` | ||
|
|
||
| ```lua |
There was a problem hiding this comment.
Add a comment to both the original snippet and this snippet describing it
There was a problem hiding this comment.
Sorry, I should have been more specific. This is what I'm looking for: https://premake.github.io/docs/defines/ -- Not in the code block itself, but a snippet above describing what the example does.
website/docs/nugetsource.md
Outdated
| ### Parameters ### | ||
|
|
||
| `url` is the NuGet v3 feed URL. | ||
| `url` is the NuGet v3 feed URL, or local directory. |
website/docs/zip/zip.list.md
Outdated
|
|
||
| ### Availability ### | ||
|
|
||
| Premake 5.0.0-beta9 or later. |
|
|
||
| -- It should be possible to implement this for platforms other than | ||
| -- Windows, but we'll need to figure out where the NuGet cache is on | ||
| -- these platforms (or if they even have one). |
There was a problem hiding this comment.
Can we write an issue to track that?
There was a problem hiding this comment.
Yes, moved code BTW.
Not sure how Nuget is used outside MSVC.
There was a problem hiding this comment.
It's used with dotnet on MacOS, Linux, and Windows in addition to the native C++ packages on Windows. That said, Microsoft recommends vcpkg now for native projects.
4637391 to
6cc0bd0
Compare
| nugetsource "https://api.nuget.org/v3/index.json" | ||
| ``` | ||
|
|
||
| ```lua |
There was a problem hiding this comment.
Sorry, I should have been more specific. This is what I'm looking for: https://premake.github.io/docs/defines/ -- Not in the code block itself, but a snippet above describing what the example does.
Add `zip.list` to get list of files from a zip file.
6cc0bd0 to
0c09957
Compare
Add
zip.listto get list of files from a zip file.What does this PR do?
Add support for nugetsource to use local directory
How does this PR change Premake's behavior?
No changes of previous script expected, just new behavior
Anything else we should know?
I need to get list of files from zip/nupkg file,
So I also added
zip.listTesting with https://github.com/Jarod42/wxWidgets_nuget_test
Not sure best way to add UTs for that.
Adding dummy zip file nuget package seems not really good.
Did you check all the boxes?
closes #XXXXin comment to auto-close issue when PR is merged)