Skip to content

Commit 883d149

Browse files
Merge pull request #118 from PowershellFrameworkCollective/PSFProject
2.2.7.98
2 parents fe65a43 + b5ea6c8 commit 883d149

33 files changed

+495
-525
lines changed

PSModuleDevelopment/PSModuleDevelopment.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
RootModule = 'PSModuleDevelopment.psm1'
55

66
# Version number of this module.
7-
ModuleVersion = '2.2.7.90'
7+
ModuleVersion = '2.2.7.98'
88

99
# ID used to uniquely identify this module
1010
GUID = '37dd5fce-e7b5-4d57-ac37-832055ce49d6'

PSModuleDevelopment/changelog.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# Changelog
2+
## 2.2.7.98 (May 30th, 2020)
3+
4+
- Upd: Template PSFTest - Pester v5 compatibility
5+
- Upd: Template PSFModule - Pester v5 compatibility
6+
- Upd: Template PSFProject - Pester v5 compatibility
7+
- Upd: Template PSFProject - Simplified module import workflow
8+
- Upd: Template PSFProject - Improved build process cross-agent convenience
9+
- Upd: Template PSFProject - Prerequisites task automatically detects module dependencies
10+
- Upd: Template PSFProject - Prerequisites task can be configured to work with any registered repository
11+
- Upd: Export-PSMDString - Now also detects splatted localization strings (thanks @StevePlp ; #117)
12+
213
## 2.2.7.90 (September 1st, 2019)
314
- New: Export-PSMDString - Parses strings from modules using the PSFramework localization feature.
415
- Upd: Measure-PSMDCommand - Renamed from Measure-PSMDCommandEx, performance upgrades, adding option for comparing multiple test sets.

PSModuleDevelopment/functions/moduledebug/Get-PSMDModuleDebug.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
1717
Returns the module debugging configuration for all modules with a name that contains "net"
1818
#>
19+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
1920
[CmdletBinding()]
2021
Param (
2122
[string]

PSModuleDevelopment/functions/moduledebug/Import-PSMDModuleDebug.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{
2626
# Get original module configuration
2727
$____module = $null
28-
$____module = Import-Clixml -Path (Get-PSFConfigValue -FullName 'PSModuleDevelopment.Debug.ConfigPath') | Where-Object { $_.Name -eq $Name }
28+
$____module = Import-Clixml -Path (Get-PSFConfigValue -FullName 'PSModuleDevelopment.Debug.ConfigPath') | Where-Object Name -eq $Name
2929
if (-not $____module) { throw "No matching module configuration found" }
3030

3131
# Process entry

PSModuleDevelopment/functions/refactor/Format-PSMDParameter.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
3131
Updates all commands in the module to have a cmdletbinding attribute.
3232
#>
33+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
3334
[CmdletBinding(SupportsShouldProcess = $true)]
3435
param (
3536
[Parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
@@ -45,6 +46,7 @@
4546
#region Utility functions
4647
function Invoke-AstWalk
4748
{
49+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
4850
[CmdletBinding()]
4951
param (
5052
$Ast,

PSModuleDevelopment/functions/refactor/Set-PSMDCmdletBinding.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#region Utility functions
4747
function Invoke-AstWalk
4848
{
49+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
4950
[CmdletBinding()]
5051
Param (
5152
$Ast,

PSModuleDevelopment/functions/refactor/Split-PSMDScriptFile.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
foreach ($functionAst in ($ast.EndBlock.Statements | Where-Object { $_.GetType().FullName -eq "System.Management.Automation.Language.FunctionDefinitionAst" }))
4949
{
50-
$ast.Extent.Text.Substring($functionAst.Extent.StartOffset, ($functionAst.Extent.EndOffset - $functionAst.Extent.StartOffset)) | Set-Content "$Path\$($functionAst.Name).ps1" -Encoding UTF8
50+
$ast.Extent.Text.Substring($functionAst.Extent.StartOffset, ($functionAst.Extent.EndOffset - $functionAst.Extent.StartOffset)) | Set-Content "$Path\$($functionAst.Name).ps1" -Encoding $Encoding
5151
}
5252
}
5353
}

PSModuleDevelopment/functions/templating/Invoke-PSMDTemplate.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
Creates a project based on the module template with the name "MyModule"
7979
#>
8080
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSPossibleIncorrectUsageOfAssignmentOperator", "")]
81+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
8182
[CmdletBinding(SupportsShouldProcess = $true)]
8283
param (
8384
[Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'NameStore')]

PSModuleDevelopment/functions/templating/New-PSMDDotNetProject.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
- It will set authentication to windows
5959
- It will skip the automatic restore of the project on create
6060
#>
61+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
6162
[CmdletBinding(SupportsShouldProcess = $true, DefaultParameterSetName = 'Create')]
6263
Param (
6364
[Parameter(Position = 0, Mandatory = $true, ParameterSetName = 'Create')]

PSModuleDevelopment/functions/utility/Measure-PSMDLinesOfCode.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#region Utility Functions
3636
function Invoke-AstWalk
3737
{
38+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
3839
[CmdletBinding()]
3940
param (
4041
$Ast,

0 commit comments

Comments
 (0)