forked from loafle/openapi-generator-original
auto load system web and net (#7748)
This commit is contained in:
parent
3d337db207
commit
e8ba2901df
@ -1,6 +1,14 @@
|
|||||||
{{>partial_header}}
|
{{>partial_header}}
|
||||||
#region Import functions
|
#region Import functions
|
||||||
|
|
||||||
|
# define the following classes in PowerShell
|
||||||
|
try {
|
||||||
|
Add-Type -AssemblyName System.Web -ErrorAction Ignore | Out-Null
|
||||||
|
Add-Type -AssemblyName System.Net -ErrorAction Ignore | Out-Null
|
||||||
|
} catch {
|
||||||
|
Write-Verbose $_
|
||||||
|
}
|
||||||
|
|
||||||
# set $ErrorActionPreference to 'Stop' globally
|
# set $ErrorActionPreference to 'Stop' globally
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
|
@ -7,6 +7,14 @@
|
|||||||
|
|
||||||
#region Import functions
|
#region Import functions
|
||||||
|
|
||||||
|
# define the following classes in PowerShell
|
||||||
|
try {
|
||||||
|
Add-Type -AssemblyName System.Web -ErrorAction Ignore | Out-Null
|
||||||
|
Add-Type -AssemblyName System.Net -ErrorAction Ignore | Out-Null
|
||||||
|
} catch {
|
||||||
|
Write-Verbose $_
|
||||||
|
}
|
||||||
|
|
||||||
# set $ErrorActionPreference to 'Stop' globally
|
# set $ErrorActionPreference to 'Stop' globally
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user