gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 04:02:12 28 4
gpt4 key购买 nike

这个问题是相关的,但不是重复的:How to install XNA game studio on Visual Studio 2012?

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

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

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

以及对 Microsoft.Xna.Framework.Content.Pipeline 的所有引用

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

最佳答案

更新:2014 年 3 月 3 日

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

旧答案

参见: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 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.0 - %temp%\XNA Game Studio 3.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. 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.

关于c# - 如何在 Windows 8 中安装 XNA Game Studio 4.0?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12849107/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com