Vscode-docker: Error start debugging

Created on 17 Jun 2019  ·  4Comments  ·  Source: microsoft/vscode-docker

Repro steps:

1.
2.

Action: debugCoreClr
Error type: Error
Error Message: Unable to infer the application project file. Set either the 'appFolder' or 'appProject' property in the Docker debug configuration.

Version: 0.6.2
OS: win32
Product: Visual Studio Code
Product Version: 1.34.0
Language: en


Call Stack

DockerDebugConfigurationProvider.inferAppProject extension.bundle.js:263:45299

.NET Debug duplicate

Most helpful comment

@philliphoff, Amazing it's worked on my mac, thanks you so much.
On the last week i spend more time for resolving on this problem.
Today, I used time for resolved about 20 min, after i read on your comment! i can continue on my project. 👍
{ "name": "Docker: Launch .NET Core (Preview)", "type": "docker-coreclr", "request": "launch", "preLaunchTask": "build", "appProject": "${workspaceFolder}/src", "dockerBuild": { // Image customizations "dockerfile": "${workspaceFolder}/src/Dockerfile.sub.debug" }, "dockerRun": { // Container customizations } }

All 4 comments

Same me...
My project build run on visual studio 2017 and 2019 (windows), but can't build on vs code (mac)

How i can add appFolder / appProject on property in the Docker ?

Action: debugCoreClr
Error type: Error
Error Message: Unable to infer the application project file. Set either the 'appFolder' or 'appProject' property in the Docker debug configuration.

Version: 0.6.2
OS: darwin
Product: Visual Studio Code
Product Version: 1.35.1
Language: en

Call Stack
DockerDebugConfigurationProvider.inferAppProject extension.bundle.js:263:45299

@yusufkaratoprak @uthens You can add the appProject or appFolder properties to your debug configuration like shown below. Note that you need only specify appProject or appFolder, not both.

{
    "configurations": [
        {
            "name": "Docker: Launch .NET Core (Preview)",
            "type": "docker-coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "appProject": "${workspaceFolder}/project/project.csproj",
            "appFolder": "${workspaceFolder}/project"
            "dockerBuild": {
                // Image customizations
            },
            "dockerRun": {
                // Container customizations
            }
        }
    ]
}

If neither of those work, let me know and, please, provide any additional details about your project that you can (e.g. the hierarchy of (project) files within the workspace).

@philliphoff, Amazing it's worked on my mac, thanks you so much.
On the last week i spend more time for resolving on this problem.
Today, I used time for resolved about 20 min, after i read on your comment! i can continue on my project. 👍
{ "name": "Docker: Launch .NET Core (Preview)", "type": "docker-coreclr", "request": "launch", "preLaunchTask": "build", "appProject": "${workspaceFolder}/src", "dockerBuild": { // Image customizations "dockerfile": "${workspaceFolder}/src/Dockerfile.sub.debug" }, "dockerRun": { // Container customizations } }

Was this page helpful?
0 / 5 - 0 ratings