Merge pull request #659 from PowerShell/appcontext

Fix AppContext.BaseDirectory when remoting
This commit is contained in:
Andy Schwartzmeyer 2016-03-14 13:54:50 -07:00
commit c541b2bc21
2 changed files with 2 additions and 7 deletions

@ -1 +1 @@
Subproject commit d9b7fde13e159016f505081603a5f67bcd2b4871
Subproject commit 351dd42278ba8ca27d29077e237f4d1b953b8554

View file

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