I’m developing on Win64 platform and adding -TargetPlatforms=Win64 resulted in a success for me.
-TargetPlatforms=Win64