diff --git a/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.Extension/SecretManagement.Keeper.Extension.psd1 b/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.Extension/SecretManagement.Keeper.Extension.psd1
index ea4ea3c4..6a3ea847 100644
--- a/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.Extension/SecretManagement.Keeper.Extension.psd1
+++ b/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.Extension/SecretManagement.Keeper.Extension.psd1
@@ -1,5 +1,5 @@
@{
- ModuleVersion = '16.6.6'
+ ModuleVersion = '16.6.8'
RootModule = 'SecretManagement.Keeper.Extension.psm1'
RequiredAssemblies = '../SecretManagement.Keeper.dll'
CompatiblePSEditions = @('Core')
diff --git a/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.Extension/SecretManagement.Keeper.Extension.psm1 b/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.Extension/SecretManagement.Keeper.Extension.psm1
index 54dd4d56..5690b533 100644
--- a/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.Extension/SecretManagement.Keeper.Extension.psm1
+++ b/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.Extension/SecretManagement.Keeper.Extension.psm1
@@ -2,6 +2,11 @@ function Get-Config {
param (
[string] $LocalVaultName
)
+ if ($PSVersionTable.PSVersion.Major -lt 6) {
+ Write-Error "Keeper Secrets Manager requires PowerShell version 6 or greater - version ($($PSVersionTable.PSVersion.ToString())) is not supported."
+ return $null
+ }
+
$vaults = Microsoft.Powershell.SecretManagement\Get-SecretVault
$localVault = $vaults.Where( { $_.Name -eq $LocalVaultName } ) # SecretStore/LocalStore
if (!$localVault) {
diff --git a/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.csproj b/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.csproj
index e540d369..1e6c2eb0 100644
--- a/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.csproj
+++ b/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.csproj
@@ -4,8 +4,8 @@
netstandard2.0
SecretManagement.Keeper
true
- 16.6.7
- 16.6.7
+ 16.6.8
+ 16.6.8
diff --git a/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.psd1 b/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.psd1
index 23ca6974..f270d1b4 100644
--- a/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.psd1
+++ b/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.psd1
@@ -1,5 +1,5 @@
@{
- ModuleVersion = '16.6.7'
+ ModuleVersion = '16.6.8'
CompatiblePSEditions = @('Core')
GUID = '20ab89cb-f0dd-4e8e-b276-f3a7708c1eb2'
Author = 'Sergey Aldoukhov'
@@ -8,7 +8,7 @@
Description = 'SecretManagement extension vault for Keeper'
RootModule = './SecretManagement.Keeper.psm1'
NestedModules = @('./SecretManagement.Keeper.Extension')
- PowerShellVersion = '5.1'
+ PowerShellVersion = '6.0'
FunctionsToExport = @('Register-KeeperVault')
CmdletsToExport = @()
VariablesToExport = @()
diff --git a/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.psm1 b/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.psm1
index 87c6401a..acc6ffaa 100644
--- a/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.psm1
+++ b/sdk/dotNet/SecretManagement.Keeper/SecretManagement.Keeper.psm1
@@ -9,8 +9,8 @@ function Register-KeeperVault {
[string] $Config,
[string] $LocalVaultName
)
- if (($PSVersionTable.PSVersion.Major -lt 5) -or (($PSVersionTable.PSVersion.Major -eq 5) -and ($PSVersionTable.PSVersion.Minor -eq 0))) {
- Write-Error "Keeper Secrets Manager: this version of Powershell ($($PSVersionTable.PSVersion.ToString())) is not supported"
+ if ($PSVersionTable.PSVersion.Major -lt 6) {
+ Write-Error "Keeper Secrets Manager requires PowerShell version 6 or greater - version ($($PSVersionTable.PSVersion.ToString())) is not supported."
return
}
$vaults = Microsoft.Powershell.SecretManagement\Get-SecretVault
@@ -51,4 +51,4 @@ function Register-KeeperVault {
Microsoft.Powershell.SecretManagement\Register-SecretVault -Name $Name -ModuleName SecretManagement.Keeper -VaultParameters $vaultParameters
# for local testing
# Microsoft.Powershell.SecretManagement\Register-SecretVault -Name $Name -ModuleName ./SecretManagement.Keeper.psd1 -VaultParameters $vaultParameters
-}
\ No newline at end of file
+}
diff --git a/sdk/dotNet/SecretsManager.Test.Core/SecretsManager.Test.Core.csproj b/sdk/dotNet/SecretsManager.Test.Core/SecretsManager.Test.Core.csproj
index 20aa10c6..9c99b75f 100644
--- a/sdk/dotNet/SecretsManager.Test.Core/SecretsManager.Test.Core.csproj
+++ b/sdk/dotNet/SecretsManager.Test.Core/SecretsManager.Test.Core.csproj
@@ -9,9 +9,9 @@
-
-
-
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/sdk/dotNet/SecretsManager/SecretsManager.csproj b/sdk/dotNet/SecretsManager/SecretsManager.csproj
index f4c18583..5e07b68b 100644
--- a/sdk/dotNet/SecretsManager/SecretsManager.csproj
+++ b/sdk/dotNet/SecretsManager/SecretsManager.csproj
@@ -5,9 +5,9 @@
9
Keeper Security Inc.
SecretsManager .Net SDK
- 16.6.7
- 16.6.7
- 16.6.7
+ 16.6.8
+ 16.6.8
+ 16.6.8
en-US
Keeper.SecretsManager
Sergey Aldoukhov
@@ -23,7 +23,7 @@
-
+