Skip to content

MacOS build on VS Code

Petteri Kautonen edited this page Jul 27, 2022 · 1 revision

Edit the .vscode/launch.json to:

"program": "${workspaceFolder}/amp.EtoForms/bin/Mac64/Debug/net6.0/amp.EtoForms.app/Contents/MacOS/amp.EtoForms",

launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            // Use IntelliSense to find out which attributes exist for C# debugging
            // Use hover for the description of the existing attributes
            // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
            "name": ".NET Core Launch (console)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            // If you have changed target frameworks, make sure to update the program path.
            "program": "${workspaceFolder}/amp.EtoForms/bin/Mac64/Debug/net6.0/amp.EtoForms.app/Contents/MacOS/amp.EtoForms",
            "args": [],
            "cwd": "${workspaceFolder}/amp.EtoForms",
            // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
            "console": "internalConsole",
            "stopAtEntry": false
        },
        {
            "name": ".NET Core Attach",
            "type": "coreclr",
            "request": "attach"
        }
    ]
}
Clone this wiki locally