[IronPython] ironpython xna problem

Gigs_ gigs at hi.t-com.hr
Mon Jun 16 23:44:44 CEST 2008


Hi all!


i want to run some ironpython xna script, but all the tim im getting 
error. I tried this in c# and it is working, i have installed directx 
runtime, xna studio 2.0 and xna framework. later i tried with xna 3.0 
and same thing
this is error:

Could not load file or assembly 'Microsoft.Xna.Framework, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d' or 
one of its dependencies. The system cannot find the file specified.

import clr

clr.AddReference('Microsoft.Xna.Framework')
clr.AddReference('Microsoft.Xna.Framework.Game')

from Microsoft.Xna.Framework import *
from Microsoft.Xna.Framework.Graphics import *
from Microsoft.Xna.Framework.Content import *

class MyGame(Game):
    def __init__(self):
        self.spriteX = self.spriteY = 0
        self.spriteSpeedX = self.spriteSpeedY = 1
        self.initializeComponent()   

    def initializeComponent(self):
        self.graphics = GraphicsDeviceManager(self)
        self.content = ContentManager(self.Services)
...


Can someon help me with this_ thanks!



More information about the Ironpython-users mailing list