Skip to content

Commit 01e1e5f

Browse files
authored
Update readme with examples (#25)
1 parent d35e563 commit 01e1e5f

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.cspell.jsonc

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"words": [
33
"anypackage",
4+
"Avalonia",
45
"Defaultv",
56
"netstandard",
67
"Nieto",

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,39 @@ Import-Module AnyPackage.NuGet
3232
```powershell
3333
Find-Package -Name System.Management.Automation
3434
```
35+
36+
### Get installed packages
37+
38+
Gets installed packages from the NuGet global packages directory.
39+
40+
```powershell
41+
Get-Package
42+
```
43+
44+
### Install packages
45+
46+
Installs packages to the NuGet global packages directory.
47+
48+
```powershell
49+
Install-Package -Name System.Management.Automation
50+
```
51+
52+
### Install packages with specified framework
53+
54+
```powershell
55+
Install-Package -Name Avalonia -Provider NuGet -Framework netstandard2.0
56+
```
57+
58+
### Install packages with dependency behavior
59+
60+
```powershell
61+
Install-Package -Name Avalonia -Provider NuGet -DependencyBehavior Highest
62+
```
63+
64+
### Save packages
65+
66+
Saves packages to a directory.
67+
68+
```powershell
69+
Save-Package -Name System.Management.Automation -Path C:\Temp
70+
```

0 commit comments

Comments
 (0)