I am creating a scripting engine for my game and I need C # scripts to have a reference to the Microsoft.XNA.Framework assembly so that I can inherit my own classes.
I am currently mistaken when I add a link to Microsoft.XNA.Framework.dll. This is my link adding code (I left a link to my own EXE, but it is.):
parms.ReferencedAssemblies.Add("System.dll");
parms.ReferencedAssemblies.Add("Microsoft.Xna.Framework.dll");
parms.ReferencedAssemblies.Add("Microsoft.Xna.Framework.Graphics.dll");
parms.ReferencedAssemblies.Add("mscorlib.dll");
And here my code will be compiled:
using System;
using Microsoft.XNA.Framework;
using Microsoft.XNA.Framework.Graphics;
namespace _2342 {
namespace Blocks {
class MyClass : Block
{
public MyClass() {
_name = "TestBlock";
}
}
}}
I get two errors from CodeProvider saying that none of the XNA DLLs were found.
How can i fix this?
source
share