Error: Couldn't find target rules file for target

I recently migrated a project from version 4.0.2 to 4.4 and now i get an error with the vague description of error code: 2.

Any ideas on what this might be caused from and how to fix it?

the following is the error that the command window displays after running the command

can you screen shot it?

sure, I have added a picture now to the post

Im having the same problem!!

Your best bet is to run the command in a command window (see the second error message for what it is running) and try that, normally comes back with more information.

Hi , I just ran that command and found out that the error involves something with the target rules. I am not sure why this is happening though, any ideas?

PS: I attached an image of the error in the question

Try regenerating the project files (both of the engine and of your project): this resolved tons of problems for me.

I tried, it stills give me the same error

nvm, I believe that regenerating the project files for both actually solved it. After regenerating, I had a typo on the command. Once I ran the command correctly, it notified me of deprecated functionality that I had to remove from the project. So for anyone else having this problem, try regenerating the project files for both the project and the engine and running the build command on the command prompt. This is what helped me solve the problem. Thanks for all of yall that took the time to look at this