Error Compiling

Hi guys

Got this error when compiling but I have not changed any c++ in my project

any ideas what’s causing this?

Could you verify that you have your Target.cs files in your source directory of your project?

ProjectName.Target.cs
ProjectNameEditor.Target.cs

And that you have a build.cs where you actual source is located?

ProjectName.Build.cs

Another compiling error here…

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ““C:\Program Files\Unreal Engine\4.3\Engine\Build\BatchFiles\Build.bat” projectoneEditor Win64 DebugGame “C:\Users\Admin\Documents\Unreal Projects\projectone\projectone.uproject” -rocket” exited with code -1.

I can compile the fresh project, but after I add a class I get errors. There was a second error which pointed on a missing project.h file in my new class.cpp, well I couldnt find that file but it looked like it wanted to include the projectPrivatePCH.h file, so i renamed it and the error is gone. Now there is still this error i mentioned above.

any suggestions?

Have you generated the project files? Every time you add a new file you have to regenerate the project.

how do i regenerat the files?

Right click in the .uproject file and select regenerate project files