Failed to generate Visual Studio project files 4.20
When I try to generate the Visual Studio project files for my project, wich I did before successfully, it now throws this error:
Running E:/Epic Games/UE_4.20/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="...Project.uproject" -game -rocket -progress -log=...Project/Saved/Logs/UnrealVersionSelector-2018.10.22-12.14.15.log Discovering modules, targets and source code for project... ERROR: UnrealBuildTool Exception: Unable to instantiate instance of '...ProjectTarget' object type from compiled assembly '...ProjectModuleRules'. Unreal Build Tool creates an instance of your module's 'Rules' object in order to find out about your module's requirements. The CLR exception details may provide more information: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at UnrealBuildTool.TargetRules..ctor(TargetInfo Target) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Configuration\TargetRules.cs:line 1240 at ...ProjectTarget..ctor(TargetInfo Target) in ...Project\Source...Project.Target.cs:line 8 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object parameters) at UnrealBuildTool.RulesAssembly.CreateTargetRulesInstance(String TypeName, TargetInfo TargetInfo) in D:\Build++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 425
Can anyone help me on how to fix this problem?
I already reinstalled VS 2017 and 4.20, nothing worked.
Ok I found the problem, apparently someone in my team added the newly added Crypto system to our Project, wich lead to me not being able to generate the VS project files or compile with VS in any way. So if you have Crypto enabled in your Project and you run into a similar or probably any problem, first try disabling it.
answered Oct 22 '18 at 11:09 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here