From e43172e801c49e9d7d6863980335b73e2b62dd52 Mon Sep 17 00:00:00 2001 From: Thomas Nieto <38873752+ThomasNieto@users.noreply.github.com> Date: Mon, 2 Dec 2024 09:17:54 -0600 Subject: [PATCH 1/5] Update readme with examples --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 7358cb8..f53f5c2 100644 --- a/README.md +++ b/README.md @@ -32,3 +32,19 @@ Import-Module AnyPackage.NuGet ```powershell Find-Package -Name System.Management.Automation ``` + +### Install packages + +Installs packages to the NuGet global packages directory. + +```powershell +Install-Package -Name System.Management.Automation +``` + +### Save packages + +Saves packages to a directory. + +```powershell +Save-Package -Name System.Management.Automation -Path C:\Temp +``` From 6d089ff4fe0e0d7b0bc0c741015228217ad0899c Mon Sep 17 00:00:00 2001 From: Thomas Nieto <38873752+ThomasNieto@users.noreply.github.com> Date: Mon, 2 Dec 2024 09:20:09 -0600 Subject: [PATCH 2/5] Add Get-Package example --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index f53f5c2..a946f9a 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,14 @@ Import-Module AnyPackage.NuGet Find-Package -Name System.Management.Automation ``` +### Get installed packages + +Gets installed packages from the NuGet global packages directory. + +```powershell +Find-Package -Name System.Management.Automation +``` + ### Install packages Installs packages to the NuGet global packages directory. From d5a98f53d05dabc3ecb6965c00d9977ca705eeed Mon Sep 17 00:00:00 2001 From: Thomas Nieto <38873752+ThomasNieto@users.noreply.github.com> Date: Mon, 2 Dec 2024 09:21:36 -0600 Subject: [PATCH 3/5] Fix Get-Package example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a946f9a..96b33e3 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Find-Package -Name System.Management.Automation Gets installed packages from the NuGet global packages directory. ```powershell -Find-Package -Name System.Management.Automation +Get-Package ``` ### Install packages From a0292fd90bfed6569a9335645e715842bf7208a7 Mon Sep 17 00:00:00 2001 From: Thomas Nieto <38873752+ThomasNieto@users.noreply.github.com> Date: Mon, 2 Dec 2024 09:25:18 -0600 Subject: [PATCH 4/5] Add dynamic parameter examples --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 96b33e3..79eecea 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,18 @@ Installs packages to the NuGet global packages directory. Install-Package -Name System.Management.Automation ``` +### Install packages with specified framework + +```powershell +Install-Package -Name Avalonia -Provider NuGet -Framework netstandard2.0 +``` + +### Install packages with dependency behavior + +```powershell +Install-Package -Name Avalonia -Provider NuGet -DependencyBehavior Highest +``` + ### Save packages Saves packages to a directory. From 8916341bc9c097749071ddc7ea3ef6187e934bce Mon Sep 17 00:00:00 2001 From: Thomas Nieto <38873752+ThomasNieto@users.noreply.github.com> Date: Mon, 2 Dec 2024 09:25:41 -0600 Subject: [PATCH 5/5] Add Avalonia to spelling --- .cspell.jsonc | 1 + 1 file changed, 1 insertion(+) diff --git a/.cspell.jsonc b/.cspell.jsonc index d5426c3..abd03cc 100644 --- a/.cspell.jsonc +++ b/.cspell.jsonc @@ -1,6 +1,7 @@ { "words": [ "anypackage", + "Avalonia", "Defaultv", "netstandard", "Nieto",