I use VS code (not VS cause i have linux) and have been trying to run my c# template from run and debug in VS code but it does not works and returns this error in output.
------------------------------------------------------------------------------
You may only use the Microsoft Visual Studio .NET/C/C++ Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software to help you
develop and test your applications.
------------------------------------------------------------------------------
You must install .NET to run this application.
App: /home/lazare/Documents/lazare/webapi/WebApplication1/bin/Debug/net9.0/WebApplication1
Architecture: x64
App host version: 9.0.10
.NET location: Not found
Learn more:
https://aka.ms/dotnet/app-launch-failed
Download the .NET runtime:
Failed to resolve libhostfxr.so [not found]. Error code: 0x80008083
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
The program '[73320] WebApplication1' has exited with code 131 (0x83).
but i have dotnet installed. net9. and even when i run it from terminal it works.
lazare@lazare-dell:~/Documents/lazare/webapi$ dotnet run --project /home/lazare/Documents/lazare/webapi/WebApplication1
Using launch settings from /home/lazare/Documents/lazare/webapi/WebApplication1/Properties/launchSettings.json...
Building...
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:5025
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: /home/lazare/Documents/lazare/webapi/WebApplication1
can you please help me what is going on.