Skip to content

Commit 3f401e6

Browse files
Merge pull request #4 from PowershellFrameworkCollective/development
0.9.12
2 parents e24f300 + 240016a commit 3f401e6

5 files changed

Lines changed: 16 additions & 3 deletions

File tree

PSFramework.NuGet/PSFramework.NuGet.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RootModule = 'PSFramework.NuGet.psm1'
44

55
# Version number of this module.
6-
ModuleVersion = '0.9.11'
6+
ModuleVersion = '0.9.12'
77

88
# ID used to uniquely identify this module
99
GUID = 'ad0f2a25-552f-4dd6-bd8e-5ddced2a5d88'

PSFramework.NuGet/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.9.12 (2025-05-06)
4+
5+
+ Fix: Install-PSFModule - fails to install on a default Windows PowerShell console without any modifications.
6+
37
## 0.9.11 (2025-05-05)
48

59
+ New: Bootstrap script to deploy PSFramework.NuGet to the local computer without requiring Package Management.

PSFramework.NuGet/internal/functions/Get/Save-StagingModule.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@
115115

116116
$tempDirectory = New-PSFTempDirectory -Name StagingSub -ModuleName PSFramework.NuGet
117117
$param = $Item.v2Param
118+
$actualParam = $param + $callSpecifics | ConvertTo-PSFHashtable -ReferenceCommand Save-Module
119+
118120
# 1) Save to temp folder
119-
try { Save-Module @param -Path $tempDirectory @callSpecifics }
121+
try { Save-Module @actualParam -Path $tempDirectory }
120122
catch {
121123
Write-PSFMessage -String 'Save-StagingModule.SavingV2.Error.Download' -StringValues $Item.Name, $Item.Version, $Repository.Name, $Repository.Type -Target $Item -Tag fail, save -ErrorRecord $_
122124
$result.Error = $_

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ To install this module, run ...
5252
Install-Module PSFramework.NuGet -Scope CurrentUser
5353
```
5454

55+
Of course, problem here is that if you want to use this module, this very line might be failing already!
56+
So, here is a way to bootstrap your current console without requiring PowerShellGet to already function:
57+
58+
```powershell
59+
iwr https://raw.githubusercontent.com/PowershellFrameworkCollective/PSFramework.NuGet/refs/heads/master/bootstrap.ps1 | iex
60+
```
61+
5562
## Features
5663

5764
### Module Installation (Local or Remote)

bootstrap.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
Installs all that is needed to run PSFramework.NuGet without using the PowerShellGet tools.
44

0 commit comments

Comments
 (0)