mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-15 18:55:46 +00:00
Fix Publish on PSGallery (with PS Core) (#24)
* Connect: Add System.Web to Type (Assembly) for PS 5.0 * NetboxPS(.psd1): Remove Required Assemblies (System.web) requirement
This commit is contained in:
parent
c8e0a96690
commit
e162c05900
2 changed files with 3 additions and 1 deletions
|
|
@ -85,6 +85,8 @@
|
||||||
|
|
||||||
#for PowerShell (<=) 5 (Desktop), Enable TLS 1.1, 1.2 and Disable SSL chain trust
|
#for PowerShell (<=) 5 (Desktop), Enable TLS 1.1, 1.2 and Disable SSL chain trust
|
||||||
if ("Desktop" -eq $PSVersionTable.PsEdition) {
|
if ("Desktop" -eq $PSVersionTable.PsEdition) {
|
||||||
|
#Add System.web (Need for ParseQueryString)
|
||||||
|
Add-Type -AssemblyName System.Web
|
||||||
#Enable TLS 1.1 and 1.2
|
#Enable TLS 1.1 and 1.2
|
||||||
Set-NetboxCipherSSL
|
Set-NetboxCipherSSL
|
||||||
if ($SkipCertificateCheck) {
|
if ($SkipCertificateCheck) {
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ CLRVersion = '2.0.50727'
|
||||||
# RequiredModules = @()
|
# RequiredModules = @()
|
||||||
|
|
||||||
# Assemblies that must be loaded prior to importing this module
|
# Assemblies that must be loaded prior to importing this module
|
||||||
RequiredAssemblies = 'System.Web'
|
#RequiredAssemblies = ''
|
||||||
|
|
||||||
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
|
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
|
||||||
# ScriptsToProcess = @()
|
# ScriptsToProcess = @()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue