title: DotNet core 3.0 compilation issues in VSCode
body: <p>I am new to DotnetCore and MS programming. With the new push from MS to be more platform neutral, I had an interest in me to try it out and see if it works the way it promises. That said, I have had problem even getting a helloworld program work on DotNetCore on windows from VSCode. Everything seems to work fine on my command prompt and VisualStudio 2019, my mac's VS Studio for mac. Real strain seems to be on VSCode in Windows 10. I'd appreciate all your help, if you can</p>
  
  <p>The error I receive is "Cannot find debug adapter for type coreclr". No matter what I do, I end up with this error. 
  1. INstalled Dotnet core 3.0
  2. Set up MSBuildSDKsPath env variable that points to C:\Program Files\dotnet\sdk\3.0.100\Sdks
  3. Restarted machine as many times</p>
  
  <p>Nothing works. Here's the sample code as well as my launch.json. </p>
  
  <pre><code>using System;
  
  namespace OOPExample
  {
      public struct Dimensions {
          public double Length { get; }
          public double Width { get; }
  
          public Dimensions(double length, double width) {
              Length = length;
              Width= width;
          }
  
          public double Diagonal =&gt; Math.Sqrt(Length * Length + Width * Width);
      }
  
      class Program
      {
          static void Main(string[] args)
          {
              Console.WriteLine($"Hello World - {new Dimensions(10.0, 15.0).Diagonal}");
          }
      }
  }
  </code></pre>
  
  <p>Here's my launch.json</p>
  
  <pre><code>{
     // 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
     "version": "0.2.0",
     "configurations": [
          {
              "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}/bin/Debug/netcoreapp3.0/OOPExample.dll",
              "args": [],
              "cwd": "${workspaceFolder}",
              // 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",
              "processId": "${command:pickProcess}"
          }
      ]
  }
  </code></pre>
  
  <p>When I execute dotnet build and dotnet run from command prompt, everything is fine</p>
  
  <p>dotnet build:</p>
  
  <pre><code>C:\Users\Krishnan\Projects\DotNet\OOPExample&gt; dotnet build
  Microsoft (R) Build Engine version 16.3.0+0f4c62fea for .NET Core
  Copyright (C) Microsoft Corporation. All rights reserved.
  
    Restore completed in 12.86 ms for C:\Users\Krishnan\Projects\DotNet\OOPExample\OOPExample.csproj.
    OOPExample -&gt; C:\Users\Krishnan\Projects\DotNet\OOPExample\bin\Debug\netcoreapp3.0\OOPExample.dll
  
  Build succeeded.
      0 Warning(s)
      0 Error(s)
  
  Time Elapsed 00:00:00.77
  </code></pre>
  
  <p>dotnet run:</p>
  
  <pre><code>PS C:\Users\Krishnan\Projects\DotNet\OOPExample&gt; dotnet run
  Hello World - 18.027756377319946
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/l1FIa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l1FIa.png" alt="enter image description here"></a></p>
  
  <p>If you are wondering how I created this project, it was nothing more than a simple
  dotnet new console command. So nothing fancy</p>