I solved the problem opening the project in VS first. There the missing things were clearer. And after installing all the missing files in VS and compiling it there, Rider worked and compiled smoothly
Sorry if I don't have the correct words but I am a beginner/enthusiast coder.