μ΅κ·Ό μΆμλ Visual Studio 15.6 (https://blogs.msdn.microsoft.com/visualstudio/2018/03/06/visual-studio-2017-version-15-6-visual-studio-for-mac-version- 7-4-released) μ€λ¨ / Powershell JSON μ²λ¦¬
λ¬Έμ 1:
"[{x:'b'},{x:'a'}]" | ConvertFrom-Json | ConvertTo-Json
VS 15.6μ΄ λ°νλκΈ° μ μ
[
{
"x": "b"
},
{
"x": "a"
}
]
VS 15.6μ΄ μ€μΉλ κ²½μ° λ°ν
{
"value": [
{
"x": "b"
},
{
"x": "a"
}
],
"Count": 2
}
> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.16299.248
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.248
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
λ¬Έμ 2:
"[{x:'b'},{x:'a'}]" | ConvertFrom-Json | Sort-Object -Property x
VS 15.6μ΄ λ°νλκΈ° μ μ
x
-
a
b
VS 15.6μ΄ μ€μΉλ κ²½μ° λ°ν
x
-
b
a
> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.16299.248
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.248
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
VS 15.5.6μ΄ μ€μΉλ VMμ΄ μμΌλ©° VS 15.6.1μ΄ μ€μΉλ κ°λ°μ λ©ν± κ°μ μ°¨μ΄κ° μλ€κ³ λ§ν μ μμ΅λλ€.
μμλλ‘ μ€λͺ
νλ κ²μ PowerShell 6(λ μ»΄ν¨ν° λͺ¨λ)μμ μ»μ κ²μ΄κ³ , μ€μ λ‘ μ€λͺ
νλ κ²μ λ μ»΄ν¨ν°μμ Windows PowerShell 5.1μμ μ»μ κ²μ
λλ€. μ΄ λ¦¬ν¬μ§ν 리λ PowerShell 6 λ¬Έμ μ μ©μ
λλ€.
@bergmeister μ μ견μ μΆκ°νλ €λ©΄: κ·νκ° μ€λͺ νλ λ¬Έμ λ _Core_μμ μΌλ§ μ μ μμ λμμ΅λλ€(κ·Έλ¬λ _Windows PowerShell_ v5.1μλ μ¬μ ν μ‘΄μ¬ν¨): #3153
λ²κ·Έ ν νλ¦Ώμ λͺ μλ λλ‘:
Windows PowerShell 5.1 λ¬Έμ , μ μ λλ κΈ°λ₯ μμ²μ κ²½μ° λ€μ λ§ν¬λ₯Ό λμ μ¬μ©νμμμ€.
- Windows PowerShell μ¬μ©μ μμ±