I have written a Plugin, basically a BP Function Library, which is Windows specific. Since it requires some Windows specific includes, I have used AllowWindowsPlatformTypes.h / HideWindowsPlatformTypes.h to include the proper header files.
The Plugin works perfectly in the editor and in a packaged game, but refuses to be Packaged using the Package function from the Plugin Windows. It fails with the following error:
fatal error C1083: Cannot open include file: ‘AllowWindowsPlatformTypes.h’: No such file or directory
Also compiling the Plugin in VS works without any issues. Any ideas about what I am missing here? I am on 4.20.3.
UPDATE: I have tried also to WhiteList the Win64 platform inside the Build file but it doesn’t make any difference.
UPDATE2: I have tried multiple combinations of includes but eventually I always get an error that one include cannot be opened (like above)
SOLVED: see post #4 for the solution. Thanks to @kamrann for the tip that put me on the right track.