mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Don't load Netwonsoft.Json from path
It's already loaded.
This commit is contained in:
1 parent
d27ae18ca0
commit
1b3bd12230
1 file changed
-9
@@ -1,15 +1,6 @@
|
||||
# While Core PowerShell does not support the JSON cmdlets, a third
|
||||
# party C# library, [Json.NET](http://www.newtonsoft.com/json), can be
|
||||
# loaded into PowerShell and used directly.
|
||||
|
||||
# http://www.newtonsoft.com/json/help/html/ParsingLINQtoJSON.htm
|
||||
|
||||
Describe "Json.NET LINQ Parsing" {
|
||||
# load third party Json.NET library
|
||||
$base = [System.AppContext]::BaseDirectory
|
||||
$path = Join-Path $base Newtonsoft.Json.dll
|
||||
[Microsoft.PowerShell.CoreCLR.AssemblyExtensions]::LoadFrom($path)
|
||||
|
||||
BeforeEach {
|
||||
$jsonFile = Join-Path -Path (Join-Path $PSScriptRoot -ChildPath assets) -ChildPath TestJson.json
|
||||
$jsonData = (Get-Content $jsonFile | Out-String)
|
||||
|
||||
Reference in new issue
Block a user