'Issues Visual Studio with WSL debugging for C# ASP.net Core Web APi
I created standard template ASP.net Core Web API.
I'm trying to run the debugger.
Steps I took:
- Open Visual Studio make new ASP.net Core Web API and choose file location a folder in wsl. (https checked).
- Choose WSL in the debugger dropdown and press on it (also tried without debugger).
- ???
- Error, displayed below.
One or more errors occurred.
Failed to launch debug adapter. Additional information may be available in the output window.
Invalid 'cwd' value '/mnt/\//home/johndoe/www/tmp/ContosoPizza'. The system cannot find the path specified.
I was wondering what steps you could take to solve this?
edit:
Versions I am using..;
Visual Studio (2022) version: Version 17.2.0 Preview 1.0
WSL: Ubuntu (20.04)
ASP.net core: 7.0.0-preview.1.22109.13
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
