Debugging in vscode with multiple dotnet core projects under one solution
<p>I have setup my project in vscode with a root "solution" containing a global.json defining the sub projects. These are currently my web app, and a class library.</p>

<p>That works fine, and I have setup the following launch.json under the root directory in an attempt to debug my web app:</p>

<pre><code>{
"version": "0.2.0",
"configurations": [
    {
        "name": "WebApp",
        "type": "coreclr",
        "request": "launch",
        "preLaunchTask": "",
        "program": "${workspaceRoot}/WebApp/bin/Debug/netcoreapp1.0/WebApp.dll",
        "args": [],
        "cwd": "${workspaceRoot}/WebApp/",
        "stopAtEntry": false,
        "launchBrowser": {
            "enabled": true,
            "args": "${auto-detect-url}",
            "osx": {
                "command": "open"
            }
        }
    }
]
</code></pre>

<p>}</p>

<p>I have two issues with this.</p>

<ol>
<li><p>I had to remove the preLaunchTask build because it tries to build from the root dir. Not ideal but I can work around that by building manually first.</p></li>
<li><p>When the debugger launches, it fails to find the source code because its looking in the root dir, rather than the sub project. This one is a show stopper because I can't use breakpoints at all without the source loaded.</p></li>
</ol>

<p>Is there a way around these issues?</p>

<p><strong>Update: 9th August 2016</strong></p>

<p>I took the issue to Omnisharp directly and got a bit further, being able to debug an app and a separate library under one solution. Haven't quite hit the jackpot on multiple executable projects under one solution yet though. Unfortunately I'm not pursuing that project any longer but hopefully this can help someone towards a total solution.</p>

<p>Link to discussion and code samples: <a href="https://github.com/OmniSharp/omnisharp-vscode/issues/460#issuecomment-228392486" rel="noreferrer">https://github.com/OmniSharp/omnisharp-vscode/issues/460#issuecomment-228392486</a></p>