Skip to content

How to integrate with 32-bit project #66

@Pajamaman

Description

@Pajamaman

Now that issue #63 is resolved, I can create a simple console application, add the NLua NuGet package, change the platform target to x64 and compile it. Yay!

The problem I'm having now is with my real application, with is a 32-bit XNA project. The XNA libraries are 32-bit only, so I don't have the option to change the platform target. Trying to run my program after adding the package (and the line var lua = new Lua()) throws an exception:

BadImageFormatException: An attempt was made to load a program with an incorrect format.

The code is here if you want to see it: https://github.com/davidkennedy85/RpgTown/tree/385d70e885d7a30c9e67a7c37489ef4203f2840d

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