I'm trying to build a basic application with SFML.Net. I'm using the SFML.Net NuGet package. I've created a simple console application:
static void Main(string[] args)
{
VideoMode mode = new VideoMode(640u, 480u);
RenderWindow render = new RenderWindow(mode, "Test");
CircleShape cs = new CircleShape(100.0f);
cs.FillColor = Color.Green;
while (render.IsOpen())
{
render.Clear();
render.DispatchEvents();
render.Draw(cs);
render.Display();
}
}
When launching the program, I get the following error:
Необработанное исключение: System.BadImageFormatException: Не удалось загрузить
файл или сборку "sfmlnet-window-2, Version=2.1.0.0, Culture=neutral, PublicKeyTo
ken=null" либо одну из их зависимостей. Была сделана попытка загрузить программу
, имеющую неверный формат.
в TestSFMLApp.Program.Main(String[] args)
Basically it fails to load the dependencies of sfmlnet-window-2. I put all of the csfml files next to the executable, but to no avail.
This question was probably asked a million times by now.