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:
Alexis La Goutte 2021-09-10 17:31:15 +02:00 committed by GitHub
parent c8e0a96690
commit e162c05900
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -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) {

View file

@ -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 = @()