我在计算机1上开发了一个XNA游戏。当我将它发送给计算机2(并且我拥有所有能够运行XNA代码的代码)。当程序执行game.run时,我得到一个InvalidOperationException。从另一台计算机运行XNA代码时出错
我没有试图在计算机上运行两台计算机上的代码。但是我知道这两台机器都可以运行我写过的代码。
你有什么想法吗?
编辑:哦,我添加了asnwer,但我不能选择我的文章作为答案...
调用堆栈:
APP.EXE App.Program。主(字串[] args = {尺寸:[0]})线14 C#
这里是代码
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
using (Game1 game = new Game1())
{
game.Run();
}
}
}
而在另一台机器上运行相同的代码