UE 4.12 cant compile c++ project try rebuilding from source manually

I’ve searched through multiple threads through out the internet and cant seem to find a solution for this. and its starting to really ■■■■ me off. When i create a new c++ project i get a message saying project cant be compiled would you like to open in visual studio 2013 professional, i do this and it builds the source code with no problems if i try to run it i then get an error saying module cant be found or built with a different engine version…i’ve only used 4.12… i click yes to rebuilding it then i get the original error cant build project try rebuilding from source manually. After this point visual studio does not successfully build project anymore. I am new to unreal and have yet been able to do anything about ready to go back to using Unity if i cant get this fixed. Blueprint loads fine and the starter projects load fine but if i try using a c++ template no such luck and i’m NOT interested in using blueprint.

I am also having this issue, new BP template works fine but C++ template is broken.

Edit 1:
I have figured out a way to bypass this issue.
I stole the base UE4Editor-(ProjectName).dll from a working project & renamed it to UE4Editor-(TemplateProjectName).dll and now I can open the project in the editor.
Let me know if this works for you.

Edit 2: After further testing this only allows you to open the project, not compile once in editor.

Question:
On creating a new project does it give you this error?
The project could not be compiled. Would you like to open it in Visual Studio?

ERROR: Couldn’t find target rules file for target ‘-project=(Filepath)’ in rules assembly ‘UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.
Location: G:\Epic Games\4.12\Engine\Intermediate\Build\BuildRules\UE4Rules.dll
Target rules found:
UE4Editor - G:\Epic Games\4.12\Engine\Source\UE4Editor.Target.cs
UE4Game - G:\Epic Games\4.12\Engine\Source\UE4Game.Target.cs
UnrealHeaderTool - G:\Epic Games\4.12\Engine\Source\Programs\UnrealHeaderTool\UnrealHeaderTool.Target.cs

Hello,

From look at the original post, it seems that you may both be using Visual Studio 2013. Could you both download Visual Studio 2015 Community and give that a try? As of 4.10 we moved over to using Visual Studio 2015 and with 4.12 we moved over to the 2015 toolchain.

If you’re on a source build you can still opt to use 2013 as your IDE but it will still require the 2015 toolchain I believe.

On that point, are you using a Binary verison of the engine (downloaded from the Epic Games Launcher) or a source build engine (downloaded from Github) when this occurs?

VS 2015 Community is giving me the issue, forgot to post that above. I am using the Launcher version.

If you’re getting this error message inside of Visual Studio, then your issue seems to be different than rmcdonald136’s issue as he is only getting this message from UE4 and builds without an issue in Visual Studio. Can you please create a separate post with the information you provided above? It would be confusing to continue assisting you in this post as well if you’re having a different problem.

UE4 is giving me the error on creation of a new project or compiling in editor. VS compiles & works seemingly without issue.

Sorry, my wording for my last post was absolutely terrible. (Guess I was tired or not paying attention.)
Meant to say I am using VS 2015 & the editor is giving me the issue.

However, if this still warrants a new post I will gladly do so.

It’s okay. Thank you for clearing that up. Could you post the file path to your project? Like so: C:\Users\Documents\Unreal Projects\4.12\MyProject

Also, inside of your project that is giving these errors, please open the Saved/Logs folders and upload the most recent log file. It may be able to show more information.

The file path is: C:/Users/Q-bert505/Documents/Unreal Projects/Test

Doing some further testing, I created a new project with the name “TestFP” & a few other names. All these projects work just fine, but when the project is named “Test” it does not.
The issue seems to stem from naming the project “Test”.

link text

That would be the issue. Thank you for pointing that out. The project being named Test is likely causing problems due to other files in the engine that are named Test.h and are precompiled in Binary builds. This is likely causing the compilation process to try to use these precompiled headers in place of actually compiling your project normally.

I’ve placed a bug in for the issue which will likely come back as a fix that stops users from making projects named Test. For reference, the bug number is UE-33625. Only thing I can suggest in the meantime is making projects that aren’t called Test.

Have a nice day!

hey sorry for the late reply been out of town…the solution of updating to VS 2015 worked for me. THANK YOU, that was driveing me insane lol. I tried everything but probably the most obvious solution thank again

Omg really? I thought I was the only person that named their project “Test”. Thanks for clearing that out.