title: VSCode .NET Core Debugging seems to ignore working directory
body: <p>Recently, debugging has broken for my ASP.NET Core, C# solution.</p>
  <p>VSCode 1.65.0 and C# extension v1.24.1</p>
  <p>I get this message.</p>
  <pre><code>&gt; Executing task in folder src: dotnet build /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary &lt;
  
  Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
  Copyright (C) Microsoft Corporation. All rights reserved.
  
  MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.
  The terminal process &quot;/bin/zsh '-c', 'dotnet build /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary'&quot; terminated with exit code: 1.
  
  Terminal will be reused by tasks, press any key to close it.
  </code></pre>
  <p>The debugger configuration selector looks like this:</p>
  <p><a href="https://i.stack.imgur.com/QSbGC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QSbGC.png" alt="VSCode debugger configuration selector UI" /></a></p>
  <p>I am trying to run the ticked item, i.e. &quot;Debug TZ Naked (src)&quot; - note that TZ is a code for my app and &quot;naked&quot; means not-in-Docker.</p>
  <p>The configuration looks like this:</p>
  <pre><code>{
      &quot;name&quot;: &quot;Debug TZ Naked&quot;,
      &quot;type&quot;: &quot;coreclr&quot;,
      &quot;request&quot;: &quot;launch&quot;,
      &quot;preLaunchTask&quot;: &quot;build&quot;,
      &quot;program&quot;: &quot;${workspaceFolder}/AcmeCorp.CoyoteApp.AspNetCoreMvc/bin/Debug/net6.0/AcmeCorp.CoyoteApp.AspNetCoreMvc.dll&quot;,
      &quot;args&quot;: [],
      &quot;cwd&quot;: &quot;${workspaceFolder}/AcmeCorp.CoyoteApp.AspNetCoreMvc&quot;,
      &quot;stopAtEntry&quot;: false,
      &quot;internalConsoleOptions&quot;: &quot;openOnSessionStart&quot;,
      &quot;launchBrowser&quot;: {
          &quot;enabled&quot;: true,
          &quot;args&quot;: &quot;${auto-detect-url}&quot;,
          &quot;windows&quot;: {
              &quot;command&quot;: &quot;cmd.exe&quot;,
              &quot;args&quot;: &quot;/C start ${auto-detect-url}&quot;
          },
          &quot;osx&quot;: {
              &quot;command&quot;: &quot;open&quot;,
              &quot;args&quot;: &quot;https://localhost:44340&quot;
          },
          &quot;linux&quot;: {
              &quot;command&quot;: &quot;xdg-open&quot;
          }
      },
      &quot;env&quot;: {
          &quot;ASPNETCORE_ENVIRONMENT&quot;: &quot;Development&quot;
      },
      &quot;sourceFileMap&quot;: {
          &quot;/Views&quot;: &quot;${workspaceFolder}/Views&quot;
      }
  },
  </code></pre>
  <p>Note that the <code>cwd</code> key is set to the correct value, as is relative to my workspace. I've not renamed any folders or moved my workspace for months.</p>
  <p>I have a <code>build</code> task here:</p>
  <pre><code>    {
          &quot;label&quot;: &quot;build&quot;,
          &quot;type&quot;: &quot;process&quot;,
          &quot;command&quot;: &quot;dotnet&quot;,
          &quot;options&quot;: {
              &quot;cwd&quot;: &quot;${workspaceFolder}/AcmeCorp.CoyoteApp.AspNetCoreMvc&quot;
          },
          &quot;args&quot;: [
              &quot;build&quot;,
              &quot;${workspaceFolder}/AcmeCorp.CoyoteApp.AspNetCoreMvc/AcmeCorp.CoyoteApp.AspNetCoreMvc.csproj&quot;
          ],
          &quot;problemMatcher&quot;: &quot;$msCompile&quot;
      },
  </code></pre>
  <p>I'm not sure why it's stopped working. I've restarted VSCode just in case, and I've switch the working directory of open terminals to no avail.</p>