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:
parent
49fa9f6e43
commit
576884ed0c
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue