mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-12 17:32:29 +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
|
||||
if ("Desktop" -eq $PSVersionTable.PsEdition) {
|
||||
#Add System.web (Need for ParseQueryString)
|
||||
Add-Type -AssemblyName System.Web
|
||||
#Enable TLS 1.1 and 1.2
|
||||
Set-NetboxCipherSSL
|
||||
if ($SkipCertificateCheck) {
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ CLRVersion = '2.0.50727'
|
|||
# RequiredModules = @()
|
||||
|
||||
# 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.
|
||||
# ScriptsToProcess = @()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue