0
Visual 코드에서 powershell을 디버깅하는 동안 launch.json 파일을 설정합니다.비주얼 코드 launch.json args가 datetime의 공간을 처리 할 수 없습니다.
{
"version": "0.2.0",
"configurations": [
{
"name": "PowerShell",
"type": "PowerShell",
"request": "launch",
"program": "${file}",
"args": ["param1", "param2", "param3", "10/05/2016 13:25:00"],
"cwd": "${file}"
}
]
}
는이 오류를 얻을 : 25 : 00 : 00 'A 위치 매개 변수는 인수 '13을 받아들이는 것을 찾을 수 없습니다. 나는이 탈출 할 수있는 방법에
Param(
[Parameter(Mandatory=$True,Position=1)]
[string[]]$Param1,
[Parameter(Mandatory=$True,Position=2)]
[string[]]$Param2,
[Parameter(Mandatory=$True,Position=3)]
[string[]]$Param3,
[Parameter(Mandatory=$True,Position=4)]
[datetime]$MyDateTime)
어떤 아이디어 :
PowerShell을은 다음과 같습니다?