dotnet tool install --global dotnet-script
dotnet script init
I don't know why the script init doesn't detect the installation in my case, because changing launch.json to this works:
{
"version": "0.2.0",
"configurations": [
{
"name": ".NET Script Debug",
"type": "coreclr",
"request": "launch",
"program": "${env:HOME}/.dotnet/tools/dotnet-script",
"args": [
"${file}"
],
"cwd": "${workspaceRoot}",
"stopAtEntry": false
}
]
}
I don't know why the
script initdoesn't detect the installation in my case, because changinglaunch.jsonto this works:{ "version": "0.2.0", "configurations": [ { "name": ".NET Script Debug", "type": "coreclr", "request": "launch", "program": "${env:HOME}/.dotnet/tools/dotnet-script", "args": [ "${file}" ], "cwd": "${workspaceRoot}", "stopAtEntry": false } ] }