Program.Main: ERROR: An item with the same key has already been added

Hey all, just another solution to this issue. Neither of the above solutions worked for me but i found my issue. I ended up renaming my project and that caused multiple “.Build.cs” “.Targets.cs” and “.cpp” files. For those who don’t know, just in case, they are located in your unreal project file. Navigate to Intermediate → Source. Inside that file you will see them. All I did was cut and paste the old ones, with the previous project name, outside the file structure on my desktop and it worked fine. no more issues.