Process.start can not directly run a Linux application. It can run wsl and pass the Linux command for wsl to execute.
You could also use a remote shell api like OpenSSL.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello ,
I have Asp net Console app which runs on windows , I have some tools the runs on WSL2 Linux subsystem from my code I have commands line that I am trying to execute using start process , the tools that I am trying to execute using the commands lines are on Linux my problem now that vs throw error that he cannot find the specified file after opening CMD in Linux i found the below
My question what should I do in order to debug my asp net app which is on windows that runs python tools commands that are on Linux WSL2?
Also is choosing to debug using WSL is same as WSL2?
'\\wsl.localhost\Ubuntu\home\' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. Microsoft Windows [Version 10.0.19045.2604]
Process.start can not directly run a Linux application. It can run wsl and pass the Linux command for wsl to execute.
You could also use a remote shell api like OpenSSL.