Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [2.0] Trouble loading assembly  (Read 2401 times)

0 Members and 1 Guest are viewing this topic.

ChevyRay

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
[2.0] Trouble loading assembly
« on: February 26, 2013, 07:33:53 pm »
Couldn't solve this on my own, so hoping someone here will eventually have some insight. I'm using the latest SFML.Net located at Laurent's Github.

It's just a classic:

Quote
Could not load file or assembly 'sfmlnet-graphics-2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

I'm using Visual Studio C# Express and have added sfml-audio.csproj, sfml-window.csproj, and sfml-graphics.csproj to the solution. I've referenced them from my build project, and also added the extlibs DLLs that came with the source. All the DLLs show up in the build folder when I run, but I still get the assembly load error.

I tried both the x64 and x86 DLLs, but I get the same error with both sets.

Any tips on what step I am missing? I was able to build fine using the 2.0 Release Candidate download on the main site, but only seem to get this problem trying to build the source code myself.

Pre-emptive thanks to whoever can help me :)
« Last Edit: February 26, 2013, 07:39:28 pm by ChevyRay »

krzat

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: [2.0] Trouble loading assembly
« Reply #1 on: February 26, 2013, 09:03:37 pm »
Set platform target to x86 or x64 (instead of Any CPU) and reference correct libraries.
SFML.Utils - useful extensions for SFML.Net