Help with visual studio code with UE5.1

Hello, I’m fallowing a course for unreal engine 5 in udemy from Sam pattuzzi (in case anyone knows it) and I’m in the second section where he starts to explain coding with C++. So I’m currently using UE5.1 and the lecture I’m currently trying to finish is called “compiling a c++ project”. I downloaded visual studio and visual studio code and downloaded .net 6.0 (I think that’s what you need for unreal engine 5.1) and there is a step in the lecture where he says to go to the terminal tab and select run build task:


I select that and then this happens:

the task thing becomes red and another red x appears on that line.

and this is the end of the terminal

I’d be very grateful if I can fix this so I can continue with the lectures, please!