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

时间:2021-08-20 08:21:41

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,或者我应该把它们放在哪里。

2 个解决方案

#1


66  

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.

在这个链接中使用VS2012和VS2013的下载:https://msxna.codeplex.com/release。我不知道这个项目的合法性(开发人员似乎已经对XNA进行了分解),但它确实帮助我减轻了需要VS2010的痛苦,以便利用内容管道。

Old Answer

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

参见:如何围绕可能的XNA游戏工作室或Windows Phone SDK在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
  • 从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. This will re-run the previously failing XNA Game Studio installers and they should install correctly this time.
  • 如果您正在安装Windows Phone SDK 7.1,重新运行安装并选择修复它。这将重新运行以前失败的XNA游戏Studio安装程序,并且这次应该正确安装。
  • If you are install a standalone XNA Game Studio product, re-run setup and it should install correctly this time.
  • 如果您正在安装一个独立的XNA游戏工作室产品,重新运行安装,它应该正确安装这一次。
  • 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.
  • 如果您打算做Windows Phone开发,您还应该安装Windows Phone SDK 7.1.1更新后安装Windows Phone SDK 7.1。这个更新修复了一个问题,它阻止了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. This log collection tool will create a file named %temp%\vslogs.cab.

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

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

如果您正在安装XNA游戏工作室,您可以在以下位置找到日志文件:

  • XNA Game Studio 4.0 Refresh - %temp%\XNA Game Studio 4.0 Setup\Logs
  • XNA游戏Studio 4.0刷新- %temp%\XNA游戏Studio 4.0设置\日志。
  • XNA Game Studio 4.0 - %temp%\XNA Game Studio 4.0 Setup\Logs
  • XNA游戏Studio 4.0 - %temp%\XNA游戏Studio 4.0设置\日志。
  • XNA Game Studio 3.1 - %temp%\XNA Game Studio 3.1 Setup\Logs
  • XNA游戏Studio 3.1 - %temp%\XNA游戏Studio 3.1安装\日志。
  • XNA Game Studio 3.0 - %temp%\XNA Game Studio 3.0 Setup\Logs
  • XNA Game Studio 3.0 - %temp%\XNA Game Studio 3.0安装\日志。
  • XNA Game Studio 2.0 - %ProgramFiles%\Microsoft XNA\XNA Game Studio\v2.0\Setup\Logs
  • XNA游戏工作室2.0 - %程序文件%\微软XNA\XNA游戏工作室\v2.0\设置\日志。

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.

XNA游戏工作室为Windows LIVE可重新分配的游戏安装一个版本的游戏。一些旧版本的Windows - LIVE可再分发版尝试安装和使用由Windows 8安装的文件,而旧版本的可再分发版与Windows 8安装的新版本的文件不兼容。新版本的Windows - LIVE可再发行版与Windows 8兼容,如果你在安装XNA游戏工作室之前预装了新的可再发行版,安装程序将会发现它已经在那里,并使用新版本,而不是尝试安装旧版本。

#2


6  

The installer for XNA Game Studio 4.0 has some issues on 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):

XNA游戏Studio 4.0的安装程序在Windows 8上有一些问题。安装过程失败,并删除所有安装文件。事实是,主要的安装程序提取以下安装(c:\Program Files (x86)\Microsoft XNA XNA Game Studio \ v4.0 \ \设置):

  • 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. 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!!!

冲突与第一个冲突。因此,如果您手动安装所有其他的,XNA应该可以正常工作。问题是在安装失败之后,这些文件会被自动删除。我的解决方案是在检测到错误时停止安装过程(使用任务管理器),这样安装程序就没有时间来删除安装文件。一旦你有了文件,你就可以安装它,而不必重复操作。它为我工作! ! !

#1


66  

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.

在这个链接中使用VS2012和VS2013的下载:https://msxna.codeplex.com/release。我不知道这个项目的合法性(开发人员似乎已经对XNA进行了分解),但它确实帮助我减轻了需要VS2010的痛苦,以便利用内容管道。

Old Answer

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

参见:如何围绕可能的XNA游戏工作室或Windows Phone SDK在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
  • 从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. This will re-run the previously failing XNA Game Studio installers and they should install correctly this time.
  • 如果您正在安装Windows Phone SDK 7.1,重新运行安装并选择修复它。这将重新运行以前失败的XNA游戏Studio安装程序,并且这次应该正确安装。
  • If you are install a standalone XNA Game Studio product, re-run setup and it should install correctly this time.
  • 如果您正在安装一个独立的XNA游戏工作室产品,重新运行安装,它应该正确安装这一次。
  • 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.
  • 如果您打算做Windows Phone开发,您还应该安装Windows Phone SDK 7.1.1更新后安装Windows Phone SDK 7.1。这个更新修复了一个问题,它阻止了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. This log collection tool will create a file named %temp%\vslogs.cab.

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

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

如果您正在安装XNA游戏工作室,您可以在以下位置找到日志文件:

  • XNA Game Studio 4.0 Refresh - %temp%\XNA Game Studio 4.0 Setup\Logs
  • XNA游戏Studio 4.0刷新- %temp%\XNA游戏Studio 4.0设置\日志。
  • XNA Game Studio 4.0 - %temp%\XNA Game Studio 4.0 Setup\Logs
  • XNA游戏Studio 4.0 - %temp%\XNA游戏Studio 4.0设置\日志。
  • XNA Game Studio 3.1 - %temp%\XNA Game Studio 3.1 Setup\Logs
  • XNA游戏Studio 3.1 - %temp%\XNA游戏Studio 3.1安装\日志。
  • XNA Game Studio 3.0 - %temp%\XNA Game Studio 3.0 Setup\Logs
  • XNA Game Studio 3.0 - %temp%\XNA Game Studio 3.0安装\日志。
  • XNA Game Studio 2.0 - %ProgramFiles%\Microsoft XNA\XNA Game Studio\v2.0\Setup\Logs
  • XNA游戏工作室2.0 - %程序文件%\微软XNA\XNA游戏工作室\v2.0\设置\日志。

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.

XNA游戏工作室为Windows LIVE可重新分配的游戏安装一个版本的游戏。一些旧版本的Windows - LIVE可再分发版尝试安装和使用由Windows 8安装的文件,而旧版本的可再分发版与Windows 8安装的新版本的文件不兼容。新版本的Windows - LIVE可再发行版与Windows 8兼容,如果你在安装XNA游戏工作室之前预装了新的可再发行版,安装程序将会发现它已经在那里,并使用新版本,而不是尝试安装旧版本。

#2


6  

The installer for XNA Game Studio 4.0 has some issues on 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):

XNA游戏Studio 4.0的安装程序在Windows 8上有一些问题。安装过程失败,并删除所有安装文件。事实是,主要的安装程序提取以下安装(c:\Program Files (x86)\Microsoft XNA XNA Game Studio \ v4.0 \ \设置):

  • 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. 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!!!

冲突与第一个冲突。因此,如果您手动安装所有其他的,XNA应该可以正常工作。问题是在安装失败之后,这些文件会被自动删除。我的解决方案是在检测到错误时停止安装过程(使用任务管理器),这样安装程序就没有时间来删除安装文件。一旦你有了文件,你就可以安装它,而不必重复操作。它为我工作! ! !