Failed to produce item

Trying to create a project in 4.7.3 and when it gets to the compilation of the project, a box pops up with “The project failed to compile with this version of the engine. Would you like to open the project in Visual Studio?”. I clicked the option that said show view log and the error was that the project.dll file could not be produced. Is there any way to solve it?