Fix third party library loading in JSON tests

Since we no longer have CORE_ROOT defined, but do have
AppContext.BaseDirectory from .NET
This commit is contained in:
Andrew Schwartzmeyer 2015-12-30 10:46:54 -08:00
parent 49fa9f6e43
commit 576884ed0c

View file

@ -8,7 +8,8 @@ $here = Split-Path -Parent $MyInvocation.MyCommand.Path
Describe "Json.NET LINQ Parsing" {
# load third party Json.NET library
$path = "$env:CORE_ROOT/Newtonsoft.Json.dll"
$base = [System.AppContext]::BaseDirectory
$path = Join-Path $base Newtonsoft.Json.dll
[Microsoft.PowerShell.CoreCLR.AssemblyExtensions]::LoadFrom($path)
BeforeEach {