title: .NET Core debugging with VS Code - "Only 64-bit processes can be debugged"
body: <p>I don't have VS 2017, and I'll be building a web front-end in VS Code anyway so I want to use VS Code.</p>
  
  <p>Until .NET Standard 2.0 comes out, our libraries are also in 4.6.1, so I'm targetting net461 in my .NET Core csproj:</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk.Web"&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;net461&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;Folder Include="wwwroot\" /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" /&gt;
      &lt;PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" /&gt;
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>
  
  <p>The project is the simplest <code>dotnet new webapi</code> starter app. I can build and run with <code>dotnet build</code> and <code>dotnet run</code>. I've also got the latest ms-vscode.csharp extension 1.8.1.</p>
  
  <p>However, when I try attaching or debugging this application with VS Code I get the error</p>
  
  <blockquote>
    <p>Failed to attach to process: Only 64-bit processes can be debugged</p>
  </blockquote>
  
  <p>Even running from console, then attaching with the very simple configuration:</p>
  
  <pre><code>{
    "name": ".NET Core Attach",
    "type": "coreclr",
    "request": "attach",
    "processId": "${command:pickProcess}"
  }
  </code></pre>
  
  <p>And selecting the process fails with this error. I've tried building the exe targeting x64 with:</p>
  
  <pre><code>&lt;PropertyGroup&gt;
    &lt;TargetFramework&gt;net461&lt;/TargetFramework&gt;
    &lt;Platform&gt;x64&lt;/Platform&gt;
  &lt;/PropertyGroup&gt;
  </code></pre>
  
  <p>But it produces the same error. Anyone know a fix? It seems to be because I'm targetting net461, does debugging .Net Core not support targeting other frameworks?</p>