File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Write-Host ' Initializing development environment...' - ForegroundColor Green
22$CippRoot = (Get-Item $PSScriptRoot ).Parent.FullName
3+ $env: CIPPRootPath = $CippRoot
34# ## Read the local.settings.json file and convert to a PowerShell object.
45$CIPPSettings = Get-Content (Join-Path $CippRoot ' local.settings.json' ) | ConvertFrom-Json | Select-Object - ExpandProperty Values
56# ## Loop through the settings and set environment variables for each.
@@ -19,6 +20,11 @@ if ($IsWindows) {
1920 }
2021}
2122
23+ $CIPPHttpDllPath = Join-Path $CippRoot ' Shared\CIPPHttp\bin\CIPPHttp.dll'
24+ if ((Test-Path $CIPPHttpDllPath ) -and ! (' CIPP.CIPPRestClient' -as [type ])) {
25+ [Reflection.Assembly ]::LoadFile($CIPPHttpDllPath ) | Out-Null
26+ }
27+
2228# Remove previously loaded modules to force reloading if new code changes were made
2329$LoadedModules = Get-Module | Select-Object - ExpandProperty Name
2430switch ($LoadedModules ) {
You can’t perform that action at this time.
0 commit comments