Developer Notes

Development modules can't be used in shipping games as that violates EULA

Description

Including "TargetPlatform" as a private dependency of a code project created using the binary version of the Engine prevents the Editor from being able to package the project for Win64. Removing the "TargetPlatform" dependency allows the project to be packaged.

Steps to Reproduce
  1. Create a new code project using the first person template, no starter content.
    • You must use a binary version of the Editor.
  2. In the Build.cs file for the project, add the following line of code below the PublicDependencyModuleNames line: {{PrivateDependencyModuleNames.AddRange(new string[] { "AIModule", "Sockets", "Networking", "Json", "TargetPlatform" }

    );}}

  3. Build the project in Visual Studio.
  4. Open the project in the Editor.
  5. Package the project for Windows 64-bit.

RESULT:
The build fails with the following error message: MainFrameActions: Packaging (Windows (64-bit)): xgConsole: LINK : fatal error LNK1181: cannot open input file 'D:\Epic Games\4.7\Engine\Binaries\Win64\UE4Game-Redist-DesktopPlatform.lib'

EXPECTED:
The project packages successfully.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Won't Fix
ComponentUE - Foundation - Core
Affects Versions4.7.5
Target Fix4.12
CreatedApr 10, 2015
ResolvedMar 22, 2016
UpdatedFeb 5, 2017
View Jira Issue