Witam, wyskakuje mi błąd przy kompilacji programu a dokladniej:
System.BadImageFormatException: „Nie można załadować pliku lub zestawu 'sfmlnet-window-2, Version=2.2.0.0,Culture=neutral, PublicKeyToken=null' lub jednej z jego zależności.
Próbowano załadować program w niepoprawnym formacie.”
Kod programu:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RPGgame
{
static class Program
{
[STAThread]
static void Main()
{
Game game = new Game();
game.Start();
}
}
}
Kod klasy Game:
using SFML.Graphics;
using SFML.Window;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RPGgame
{
class Game
{
public void Start()
{
RenderWindow window = new RenderWindow(new VideoMode(300, 600), "Nazwa xd");
window.SetFramerateLimit(60);
window.Closed += Window_Closed;
while (window.IsOpen)
{
window.DispatchEvents();
window.Display();
}
}
private void Window_Closed(object sender, EventArgs e)
{
Window window = (Window)sender;
window.Close();
}
}
}