mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Merge pull request #659 from PowerShell/appcontext
Fix AppContext.BaseDirectory when remoting
This commit is contained in:
+1
-1
Submodule src/omi-provider updated: d9b7fde13e...351dd42278
@@ -6,12 +6,7 @@
|
||||
|
||||
Describe "Json.NET LINQ Parsing" {
|
||||
# load third party Json.NET library
|
||||
if ([string]::IsNullOrEmpty($env:CORE_ROOT)) {
|
||||
$base = [System.AppContext]::BaseDirectory
|
||||
} else {
|
||||
$base = $env:CORE_ROOT
|
||||
}
|
||||
|
||||
$base = [System.AppContext]::BaseDirectory
|
||||
$path = Join-Path $base Newtonsoft.Json.dll
|
||||
[Microsoft.PowerShell.CoreCLR.AssemblyExtensions]::LoadFrom($path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user