Closed SwarfegaGit closed 3 years ago
SecretManagement is built against the net461
framework and PowerShell standard library 5.1.0
.
@PaulHigin since that is the case can you please add the DotNetFrameworkVersion
key in the module manifest?
Will do.
Adding this for those finding this as well @SwarfegaGit
While it is supported on Windows PowerShell 5.1, the dependency of .NET has an effect as well. The .NET 4.6.1 framework is only found by default on Windows Server 2016+, so using Server 2012/R2 will mean you have to install that version of .NET to use the module. PowerShell 7 packages the .NET runtime with it so it does not have that OS level dependency.
You can see the default .NET frameworks by OS here: https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/versions-and-dependencies
Added info to manifest.
I have just installed the module on a Windows 2012 R2 Server using Windows PowerShell 5.1 but it throws this error. After a quick search, I believe it's down to running an older version of .NET Framework?
Is this the case? What are the version requirements for this module?
I have PowerShell 7.1.3 also installed on the server and unsurprisingly it works fine with this version.