I am having bit of an issue while moving my project from Linux to Windows, full disclosure this used to work ok before so possibly this is a borked OS or some component.
When I try to open the project it complains that my dlls need to be recompiled, which is fine as Binaries and Intermediate are not being transfered. But this step fails with it asking me to compile it by hand.
This is where I run into issues I right click on the uproject file and Try to Generate Visual Studio project files:
UnrealBuildTool.GuardedMain: Command line:
"D:/<user>/Engine/UE_4.21/Engine/Binaries/DotNET/UnrealBuildTool.exe" -projectfiles -project="D:/<user>/Projects/MyProject/MyProject.uproject" -game -rocket -progress -log="D:\<user>\Projects\MyProject/Saved/Logs/UnrealVersionSelector-2018.12.31-17.19.12.log"
ProjectFileGenerator.GenerateProjectFiles: Discovering modules, targets and source code for project...
UnrealBuildTool.GuardedMain: ERROR: UnrealBuildTool Exception: Couldn't find target rules file for target 'MyProject' in rules assembly 'UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
UnrealBuildTool.GuardedMain: Location: D:\<user>\Engine\UE_4.21\Engine\Intermediate\Build\BuildRules\UE4Rules.dll
UnrealBuildTool.GuardedMain: Target rules found:
That is it. No rules what so ever.
I revert my project when I am certain it worked and used 4.18 engine to try open it. Same issue but this time I do see some targets:
D:/<user>/Engine/UE_4.18/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="D:/<user>/Projects/MyProject/MyProject.uproject" -game -rocket -progress
Discovering modules, targets and source code for project...
ERROR: UnrealBuildTool Exception: Couldn't find target rules file for target 'MyProject' in rules assembly 'UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Location: D:\<user>\Engine\UE_4.18\Engine\Intermediate\Build\BuildRules\UE4Rules.dll
Target rules found:
UE4Editor - D:\<user>\Engine\UE_4.18\Engine\Source\UE4Editor.Target.cs
UE4Game - D:\<user>\Engine\UE_4.18\Engine\Source\UE4Game.Target.cs
UnrealHeaderTool - D:\<user>\Engine\UE_4.18\Engine\Source\Programs\UnrealHeaderTool\UnrealHeaderTool.Target.cs
Where neither target seemed too relevant to me.
I am not sure what else I can do. My work is not dependent on I would just like to make this work.
Any suggestion would be greatly welcome.
I will try on a different install in couple days, to rule out the OS.
Using the VS 2017 Community Edition
And the project was renamed between the two versions I tried.