如何在 Windows 8 中安装 XNA Game Studio 4.0? [英] How to install the XNA Game Studio 4.0 in Windows 8?

查看:36
本文介绍了如何在 Windows 8 中安装 XNA Game Studio 4.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是相关的,但不是重复的:如何在 Visual Studio 2012 上安装 XNA 游戏工作室?

我阅读了上面提到的帖子,并且已经打开了 xna 项目,但是我现在遇到了一个问题.

未找到对 XNA 框架的一些引用:

Microsoft.Xna.Framework.AvatarMicrosoft.Xna.Framework.GamerServicesMicrosoft.Xna.Framework.NetMicrosoft.Xna.Framework.StorageMicrosoft.Xna.Framework.Video

以及所有对 Microsoft.Xna.Framework.Content.Pipeline

的引用

没有这些,我无法编译或运行我制作的任何游戏.我找不到包含这些的 dll,或者我应该把它们放在哪里.

解决方案

更新日期:2014 年 3 月 3 日

在此链接使用 VS2012 和 VS2013 的下载:https://msxna.codeplex.com/releases.我不知道那个项目的合法性(开发人员似乎已经反编译了 XNA),但它确实帮助我减轻了需要 VS2010 以利用内容管道的痛苦.

旧答案

请参阅:如何解决可能的 XNA 游戏Studio 或 Windows Phone SDK 在 Windows 8 上安装失败

<块引用>

如何解决此问题

如果您遇到此问题,可以使用以下步骤来解决它:

  • http 下载并安装最新版本的 Windows 游戏 - LIVE Redistributable://www.xbox.com/en-US/LIVE/PC/DownloadClient
  • 如果您正在安装 Windows Phone SDK 7.1,请重新运行安装程序并选择修复它.这将重新运行之前失败的 XNA Game Studio 安装程序,这次应该可以正确安装.
  • 如果您要安装独立的 XNA Game Studio 产品,请重新运行安装程序,这一次应该可以正确安装.
  • 如果您打算进行 Windows Phone 开发,您还应该在安装 Windows Phone SDK 7.1 之后安装 Windows Phone SDK 7.1.1 更新.此更新修复了导致 Windows Phone SDK 7.1 中的模拟器无法在 Windows 8 上正常工作的问题.

<块引用>

如果变通方法不起作用怎么办

如果您已尝试上述步骤但设置仍然失败,则您遇到的问题与上述问题不同,您必须查看设置日志文件以确定根本原因.

如果您正在安装 Windows Phone SDK 7.1,您可以使用日志收集工具来收集您的安装日志文件.此日志收集工具将创建一个名为 %temp%vslogs.cab 的文件.

如果您正在安装 XNA Game Studio,您可以在以下位置找到日志文件:

  • XNA Game Studio 4.0 刷新 - %temp%XNA Game Studio 4.0 设置日志
  • XNA Game Studio 4.0 - %temp%XNA Game Studio 4.0 设置日志
  • XNA Game Studio 3.1 - %temp%XNA Game Studio 3.1 设置日志
  • XNA Game Studio 3.0 - %temp%XNA Game Studio 3.0 设置日志
  • XNA Game Studio 2.0 - %ProgramFiles%Microsoft XNAXNA Game Studiov2.0SetupLogs

<块引用>

幕后导致此失败的原因

XNA Game Studio 安装适用于 Windows 的游戏版本 – LIVE可在幕后重新分发.一些旧版本的游戏对于 Windows – LIVE Redistributable 尝试安装和使用文件正在由 Windows 8 安装,以及旧版本的redistributable 与文件的较新版本不兼容由 Windows 8 安装.较新版本的游戏Windows – LIVE Redistributable 与 Windows 8 兼容,如果在安装 XNA Game 之前预安装新的可再发行组件Studio,安装程序将识别它已经存在并使用新的版本而不是尝试安装旧版本.

This question is related, but NOT a duplicate: How to install XNA game studio on Visual Studio 2012?

I read the above mentioned post, and have got xna projects opening, but I now have a problem.

Some of the references to the XNA framework aren't found:

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

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.

解决方案

UPDATE: March 3, 2014

Use the download for VS2012 and VS2013 at this link: 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.

Old Answer

See: How to work around a possible XNA Game Studio or Windows Phone SDK install failure on Windows 8

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
  • If you are installing the Windows Phone SDK 7.1, re-run setup and choose to repair it. This will re-run the previously failing XNA Game Studio installers and they should install correctly this time.
  • If you are install a standalone XNA Game Studio product, re-run setup and it should install correctly this time.
  • 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. This update fixes an issue that prevents the emulator in the Windows Phone SDK 7.1 from working correctly on 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. This log collection tool will create a file named %temp%vslogs.cab.

If you are installing XNA Game Studio, you can find log files at the following locations:

  • XNA Game Studio 4.0 Refresh - %temp%XNA Game Studio 4.0 SetupLogs
  • XNA Game Studio 4.0 - %temp%XNA Game Studio 4.0 SetupLogs
  • XNA Game Studio 3.1 - %temp%XNA Game Studio 3.1 SetupLogs
  • XNA Game Studio 3.0 - %temp%XNA Game Studio 3.0 SetupLogs
  • XNA Game Studio 2.0 - %ProgramFiles%Microsoft XNAXNA Game Studiov2.0SetupLogs

What is causing this failure behind the scenes

XNA Game Studio installs a version of the Games for Windows – LIVE Redistributable behind the scenes. 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.

这篇关于如何在 Windows 8 中安装 XNA Game Studio 4.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆