Blueprint AI 4.11 can't package project

So I have created a simple AI system with Blueprints and the game works in editor, and on standalone. However when I package it I keep getting this error and can not figure out how to fix it:

ERROR: Couldn’t find target rules file for target ‘-Project=G:\Prototype\Test\Test.uproject’ in rules assembly ‘UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.
Location: D:\Programs\EpicGames\Epic Games\4.11\Engine\Intermediate\Build\BuildRules\UE4Rules.dll
Target rules found:
UE4Editor - D:\Programs\EpicGames\Epic Games\4.11\Engine\Source\UE4Editor.Target.cs
UE4Game - D:\Programs\EpicGames\Epic Games\4.11\Engine\Source\UE4Game.Target.cs
UnrealHeaderTool - D:\Programs\EpicGames\Epic Games\4.11\Engine\Source\Programs\UnrealHeaderTool\UnrealHeaderTool.Target.cs

Does anyone have any ideas?

Hi ,

On the following link a number of users were experiencing the same issue and a few solutions are offered:

How can I resolve the error “Couldn’t find target rules file for target ‘MyProjectName’” when building a project?

Let me know if none of these resolve your issue.

.

I am a bit confused on how to implement that first solution. Would I give it the line:
-Projects = G:/Project/Prototype/Test

Or is it something else?

I’m not sure how to implement their solution, you may want to post the question there. However, another user experiencing the same error had an illegal character in the file path name (ie. “!”) Make sure no folders have an illegal character… For instance “-Projects” should be “Projects.”