简体   繁体   English

XNA 3.1项目无法在Windows 8中生成

[英]XNA 3.1 project fails to build in Windows 8

I've recently got myself a copy of Windows 8 (Debug/Checked build for a 64-bit OS). 我最近得到了Windows 8的副本(用于64位OS的调试/检查版本)。 Having fiddled with it for a while, I got .NET 3.5 installed on it, along with Visual C# Express Edition 2008. Now, I know this is a very old version, but please do not just tell me to update. 经过一段时间的摆弄,我在其中安装了.NET 3.5以及Visual C#Express Edition2008。现在,我知道这是一个非常旧的版本,但请不要仅仅告诉我进行更新。 I need to use this version. 我需要使用这个版本。 The same goes with XNA 3.1. XNA 3.1也是如此。

With a bit more fiddling, I got XNA 3.1 to work using this fix . 再摆弄一点,我使XNA 3.1可以使用此修复程序进行工作。

Now, however, I tried to build my project that I'd been working on in Windows 7. The first time, it give me a content pipeline error, saying that one of the resources had thrown an invalid error. 但是,现在,我尝试构建我在Windows 7中正在处理的项目。第一次,它给了我一个内容管道错误,说其中一个资源抛出了无效错误。 I would post that here, but I can't replicate it (I don't actually think it is of any significance). 我会在这里发布它,但是我无法复制它(我实际上认为它没有任何意义)。 All subsequent times, the build has been fine, but the project window does not appear. 此后所有时间,构建都很好,但是没有出现项目窗口。 The output window on the console, which usually brings up a list of stuff it does before running the project, now has just one line: (Managed): Loaded 'C:\\Windows\\assembly\\GAC_32\\mscorlib\\2.0.0.0__b77a5c561934e089\\mscorlib.dll', Skipped loading symbols. 控制台上的输出窗口通常会显示其在运行项目之前所做的工作的列表,现在只有一行:( 托管):已加载'C:\\ Windows \\ assembly \\ GAC_32 \\ mscorlib \\ 2.0.0.0__b77a5c561934e089 \\ mscorlib.dll',跳过了加载符号。 Module is optimized and the debugger option 'Just My Code' is enabled. 模块已优化,调试器选项“ Just My Code”已启用。 Which is a line that also appeared on all my successful builds in Windows 7, but then it was followed by more, similar lines. 这行代码也出现在我在Windows 7中所有成功构建的代码中,但随后出现了更多类似的代码行。 Now it is not. 现在不是。 The debugger never progresses from there. 调试器永远不会从那里进行。 If I try to pause the debugger, it gives me this error: Unable to break execution. 如果我尝试暂停调试器,它将出现以下错误: 无法中断执行。 The debugger is still attaching to the process. 调试器仍在附加到该进程。

If anyone has any idea what would cause this error, I would very much like some help here. 如果有人知道导致此错误的原因,我非常希望在此提供帮助。 I do have a dual boot set up, so I can still work on my project, but constantly rebooting any time I want to work on a project is more than a little inconvenient. 我确实设置了双重引导,所以我仍然可以在项目上工作,但是在我想处理项目的任何时间都不断地重新引导会带来很多不便。

不幸的是,您可能遇到的问题是所使用的XNA版本,您正在Windows 8上运行,因此它与XNA 3.1的兼容性不佳。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM