Error Code MSB3073 when I compile

I keep getting this error, deriving from this line of code whenever I try to compile my program. I haven’t even added any custom classes, this is just the unreal file straight out of the box and I cannot get it to compile from VS code. It says that possible something is going wrong with my build process or NMake? Has anybody experienced this / know the solution to this issue?

Okay, I think I solved it! Make sure you have the Unreal VS plugin for Visual Studio installed. You have to go to ProgramFiles>EpicGames>Engine>Extras>UnrealVS and then run the exe and install from there.

Hope that helps anyone else!

1 Like

Have you compiled again after this step?

So I was dealing with this for a few days, and deleted all the temp files and regenerated which didnt work for me. So after reading endless reddit and forums, I saw someone mention that in the .uproject file (plugins specifically) may be causing the issues. I opened my .uproject file and compared to an older backup I had saved where I saw a few discrepancies. One thing to mention is that when I disabled the Visual studio plugin it was able to build, but I had some other issues because my targets were not directly in the Source folder.

In summary,

  1. Check your .uproject file and ensure that it was not corrupted or missing modules
    a. set all plugins to ‘false’
    b. helpful to compare to older version or similar project
  2. ensure .target files are directly in the source folder!!! (simple, but can be cause major issues)
  3. ensure build file is in Source>YourProject Folder
  4. then do what everyone else says, delete binaries, intermediate, saved Folder
  5. open .uproject file and it should work!

Side note, for those having NuGet issues especially older versions of UE, simply open visual studio and uninstall and reinstall (or try repair and let us know what happens). Then open Epic Games Store, and Verify UE installation. This fixed all my NuGet issues after I updated some of them corrupting my project.

Hopefully this helps save someone their project without remigrating.