私は、PowerShellスクリプトの書き込み/デバッグにVisual Studio Codeの64ビット版を使用している状況があります。しかし、Powershellスクリプトが実行していることから、PowerShellの32ビット版で実行する必要があります。 MS Accessファイルにアクセスするためにいくつかのライブラリを使用しているので、Powershell x64内で動作させる方法をまだ見つけていません。Visual Studioコードx64内でPowershell x86を実行するには?
VSコード自体が64ビットとして動作している場合、32ビットバージョンのPowershellを実行するようにVSコードに指示する方法はありますか?たとえば、launch.jsonファイルを変更して、powershell自体のパスを指定できますか?
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File",
"script": "${file}",
"args": [],
"cwd": "${file}"
},
...
]
}
+1私が持っている唯一の拡張子は、PowerShellとアイコン拡張機能ですので、私はそれがPowerShellの延長自体の一部だと信じて喜んでよ。 –