premake/website/docs/nuget.md
2021-03-12 22:10:24 +01:00

31 lines
570 B
Markdown

Specifies a list of NuGet packages that this project depends on. Only supported in Visual Studio C++ and C# projects.
```lua
nuget { "references" }
```
### Parameters ###
`references` is a list of NuGet package names and versions, where the version is separated from the name with a colon.
### Applies To ###
Project configurations.
### Availability ###
Premake 5.0 or later.
### Examples ###
Link against some NuGet packages.
```lua
project "foo"
nuget { "sdl2.v140:2.0.4", "sdl2.v140.redist:2.0.4" }
```
### See Also ###
* [nugetsource](nugetsource.md)