Skip to content

VSCode: dotnet-script installed in the global path creates a launch.json with absolute path to the .dll #755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jojorne opened this issue Jun 20, 2024 · 2 comments

Comments

@jojorne
Copy link

jojorne commented Jun 20, 2024

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
        }
    ]
}
@jojorne
Copy link
Author

jojorne commented Jun 20, 2024

Should be fixed at #753, right?

@filipw
Copy link
Member

filipw commented Jun 24, 2024

yes - however this has not been released to Nuget yet.

@jojorne jojorne closed this as completed Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants