Skip to content

Update Post Build Event that copies DLL into game directory for testing #23

Description

@Brett208

The template includes a post build event that copies the mission dll into the OP2 directory. This behavior is based off an older version of OP2 where all dlls were stored in the root game directory. Now that missions have moved to a subfolder, we may want to update this script.

@DanRStevens Do you know if we have documented anywhere what the actual behavior is for finding directories when the OPU patch is installed?

<PostBuildEvent>
  <Command>if defined Outpost2Path (xcopy /y /d "$(TargetPath)" "$(Outpost2Path)\") else (echo Outpost2Path environment variable not defined. Skipping Post Build Copy.)</Command>
</PostBuildEvent>
<PostBuildEvent>
  <Message>Copy mission DLL to game folder</Message>
</PostBuildEvent>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions