Package Plugin Failed 4.20

Error while packing plug-in in version 4.20

D:\MY-PC\Documents\UnrealEngine\MyTestPlugin\1337\MyTestPlugin\HostProject\Plugins\MyTestPlugin\Source\MyTestPlugin\Public\MyTestPlugin.h(6): fatal error C1083: Cannot open include file: ‘ModuleManager.h’: No such file or directory

Had the same issue with my older plugin. The solution was to prefix the header file name with “Modules” directory. I.e.

#include "Modules/ModuleManager.h"

instead of

#include "ModuleManager.h"