Builds in VS, Compile Fails in UE4

I’m having an issue with reloading my project. Whenever I rebuild by project the compile fails in the engine with the following message in the Message Log



Info ERROR: Couldn't find target rules file for target '-canskiplink' in rules assembly '-canskiplink_EditorRecompileModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Info Location: F:\Unreal Projects\Test\Intermediate\Build\BuildRules\-canskiplink_EditorRecompileModuleRules.dll
Info Target rules found:
Info     Test - F:\Unreal Projects\Test\Source\Test.Target.cs
Info     TestEditor - F:\Unreal Projects\Test\Source\TestEditor.Target.cs


I’ve tried clearing out everything and doing a completely fresh build, compiling with UE closed and then opening it, and I’ve literally commented out every single line of code that wasn’t generated by the template. Has anyone experienced this before? Any possible fixes?

Avoid spaces in path.

I don’t think that’s it as all of my other projects can build and compile just fine. Also it’s worth mentioning the default folder for projects in the engine has a space in it. Either way gave your solution a try: Same error, just different directory.

Looks like there is a stray ‘-canskiplink’ string in some file, or a missing space before it, etc. Id search for that first.