简体   繁体   English

如何在Windows 8中安装XNA Game Studio 4.0?

[英]How to install the XNA Game Studio 4.0 in Windows 8?

This question is related, but NOT a duplicate: How to install XNA game studio on Visual Studio 2012? 这个问题是相关的,但不重复: 如何在Visual Studio 2012上安装XNA游戏工作室?

I read the above mentioned post, and have got xna projects opening, but I now have a problem. 我看了上面提到的帖子,并且已经开放了xna项目,但我现在遇到了问题。

Some of the references to the XNA framework aren't found: 找不到对XNA框架的一些引用:

Microsoft.Xna.Framework.Avatar
Microsoft.Xna.Framework.GamerServices
Microsoft.Xna.Framework.Net
Microsoft.Xna.Framework.Storage
Microsoft.Xna.Framework.Video

And all references to Microsoft.Xna.Framework.Content.Pipeline 以及对Microsoft.Xna.Framework.Content.Pipeline所有引用

Without these, I can't compile or run any games that I've made. 没有这些,我无法编译或运行我制作的任何游戏。 I can't find the dll that contains these, or where I should put them. 我找不到包含这些的dll,或者我应该把它们放在哪里。

UPDATE: March 3, 2014 更新:2014年3月3日

Use the download for VS2012 and VS2013 at this link: https://msxna.codeplex.com/releases . 使用此链接下载VS2012和VS2013: https ://msxna.codeplex.com/releases。 I have no idea of the legality on that project (the developers seem to have decompiled XNA), but it did help me ease the pain of needing VS2010 in order to utilize the content pipeline. 我不知道该项目的合法性(开发人员似乎反编译了XNA),但它确实帮助我减轻了需要VS2010以利用内容管道的痛苦。

Old Answer 老答案

See: How to work around a possible XNA Game Studio or Windows Phone SDK install failure on Windows 8 请参阅: 如何在Windows 8上解决可能的XNA Game Studio或Windows Phone SDK安装失败问题

How to work around this issue 如何解决这个问题

If you run into this issue, here are steps that you can use to work around it: 如果您遇到此问题,可以使用以下步骤来解决此问题:

  • Download and install the latest version of the Games for Windows – LIVE Redistributable from http://www.xbox.com/en-US/LIVE/PC/DownloadClient http://www.xbox.com/en-US/LIVE/PC/DownloadClient下载并安装最新版本的Windows游戏 - LIVE Redistributable
  • If you are installing the Windows Phone SDK 7.1, re-run setup and choose to repair it. 如果要安装Windows Phone SDK 7.1,请重新运行安装程序并选择进行修复。 This will re-run the previously failing XNA Game Studio installers and they should install correctly this time. 这将重新运行以前失败的XNA Game Studio安装程序,这次应该正确安装。
  • If you are install a standalone XNA Game Studio product, re-run setup and it should install correctly this time. 如果您要安装独立的XNA Game Studio产品,请重新运行安装程序,这次应该正确安装。
  • If you are planning to do Windows Phone development, you should also install the Windows Phone SDK 7.1.1 Update after installing the Windows Phone SDK 7.1. 如果您计划进行Windows Phone开发,则还应在安装Windows Phone SDK 7.1后安装Windows Phone SDK 7.1.1更新。 This update fixes an issue that prevents the emulator in the Windows Phone SDK 7.1 from working correctly on Windows 8. 此更新解决了阻止Windows Phone SDK 7.1中的模拟器在Windows 8上正常运行的问题。

What to do if the workaround doesn't help 如果解决方法没有帮助该怎么办

If you have tried the above steps and setup still fails, you are running into a different issue than the one described above, and you will have to look at the setup log files to determine the root cause. 如果您已尝试上述步骤并且设置仍然失败,则遇到与上述问题不同的问题,您将不得不查看安装日志文件以确定根本原因。

If you are installing the Windows Phone SDK 7.1, you can use the log collection tool to gather your setup log files. 如果要安装Windows Phone SDK 7.1,则可以使用日志收集工具收集安装日志文件。 This log collection tool will create a file named %temp%\\vslogs.cab. 此日志收集工具将创建名为%temp%\\ vslogs.cab的文件。

If you are installing XNA Game Studio, you can find log files at the following locations: 如果要安装XNA Game Studio,可以在以下位置找到日志文件:

  • XNA Game Studio 4.0 Refresh - %temp%\\XNA Game Studio 4.0 Setup\\Logs XNA Game Studio 4.0刷新 - %temp%\\ XNA Game Studio 4.0 Setup \\ Logs
  • XNA Game Studio 4.0 - %temp%\\XNA Game Studio 4.0 Setup\\Logs XNA Game Studio 4.0 - %temp%\\ XNA Game Studio 4.0 Setup \\ Logs
  • XNA Game Studio 3.1 - %temp%\\XNA Game Studio 3.1 Setup\\Logs XNA Game Studio 3.1 - %temp%\\ XNA Game Studio 3.1 Setup \\ Logs
  • XNA Game Studio 3.0 - %temp%\\XNA Game Studio 3.0 Setup\\Logs XNA Game Studio 3.0 - %temp%\\ XNA Game Studio 3.0 Setup \\ Logs
  • XNA Game Studio 2.0 - %ProgramFiles%\\Microsoft XNA\\XNA Game Studio\\v2.0\\Setup\\Logs XNA Game Studio 2.0 - %ProgramFiles%\\ Microsoft XNA \\ XNA Game Studio \\ v2.0 \\ Setup \\ Logs

What is causing this failure behind the scenes 是什么导致了幕后的失败

XNA Game Studio installs a version of the Games for Windows – LIVE Redistributable behind the scenes. XNA Game Studio安装了适用于Windows的游戏版本 - LIVE Redistributable幕后。 Some older versions of the Games for Windows – LIVE Redistributable attempt to install and use a file that is being installed by Windows 8, and the older versions of the redistributable are not compatible with the newer version of the file that is installed by Windows 8. Newer versions of the Games for Windows – LIVE Redistributable are compatible with Windows 8, and if you pre-install the new redistributable before installing XNA Game Studio, setup will recognize that it is already there and use the new version instead of trying to install the old version. 某些旧版本的Games for Windows - LIVE Redistributable尝试安装和使用Windows 8安装的文件,旧版本的可再发行组件与Windows 8安装的较新版本的文件不兼容。较新版本的Windows游戏 - LIVE Redistributable与Windows 8兼容,如果您在安装XNA Game Studio之前预先安装新的可再发行组件,安装程序将识别它已经存在并使用新版本而不是尝试安装旧版。

The installer for XNA Game Studio 4.0 has some issues on Windows 8 . XNA Game Studio 4.0的安装程序在Windows 8上存在一些问题。 The installation process fails and removes all installation files. 安装过程失败并删除所有安装文件。 The fact is that the main installer extracts the following installers (at c:\\Program Files (x86)\\Microsoft XNA\\XNA Game Studio\\v4.0\\Setup): 事实是主安装程序提取以下安装程序(在c:\\ Program Files(x86)\\ Microsoft XNA \\ XNA Game Studio \\ v4.0 \\ Setup):

  • XLiveRedist.msi XLiveRedist.msi
  • xnags_documentation.msi xnags_documentation.msi
  • xnags_platform_tools.msi xnags_platform_tools.msi
  • xnags_shared.msi xnags_shared.msi
  • xnags_visualstudio.msi xnags_visualstudio.msi
  • xnaliveproxy.msi xnaliveproxy.msi

The conflict is with the first one. 冲突与第一个冲突。 So if you manually install all others, XNA should work fine. 因此,如果您手动安装所有其他人,XNA应该可以正常工作。 The problem is that after the installation failure this files are automatically deleted. 问题是安装失败后会自动删除这些文件。 My solution is to halt the installation process (using the task manager) in the moment when an error was detected, this way the installer don't have time to erase the installation files. 我的解决方案是在检测到错误时暂停安装过程(使用任务管理器),这样安装程序就没有时间擦除安装文件。 Once you have the files you can install it without repeating the procees. 获得文件后,您可以安装它而无需重复这些过程。 It worked for me!!! 它对我有用!!!

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

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