title: Visual studio WLS2 debugging and command line argument
body: <p>Im trying to debug a .net core console application in visual studio 2019 and WLS2.
  The console application requires a command line argument at startup.</p>
  <p>This my <code>launchSettings.json</code></p>
  <pre><code>{
    &quot;profiles&quot;: {
      &quot;ConsoleApp&quot;: {
        &quot;commandName&quot;: &quot;Project&quot;,
        &quot;commandLineArgs&quot;: &quot;--s&quot;,
      },
      &quot;WSL 2&quot;: {
        &quot;commandName&quot;: &quot;WSL2&quot;,
        &quot;commandLineArgs&quot;: &quot;--s&quot;,
        &quot;distributionName&quot;: &quot;&quot;
      }
    }
  }
  </code></pre>
  <p>Starting the debug session with &quot;ConsoleApp&quot; profile the application console get the argument &quot;--s&quot; as expected, but executing the debug in WSL with &quot;WSL 2&quot; profile I get  the following message:</p>
  <pre><code>Unknown option: --s
  
  .NET Core SDK (3.1.404)
  
  Usage: dotnet [runtime-options] [path-to-application] [arguments]
  </code></pre>