XNA可再发行组件从发布先决条件选项中丢失 [英] XNA Redistributable missing from Publish Prerequisites options

查看:140
本文介绍了XNA可再发行组件从发布先决条件选项中丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使XNA在Visual Studio 2012上运行得很好,并且在已安装XNA Framework Redistributable 4.0的任何计算机上发布,安装和运行游戏也能正常运行,但是当我尝试在没有安装XNA Framework 4.0的计算机上安装还没有,由于丢失而导致安装失败.此外,在程序的发布属性的先决条件"菜单中,它甚至都不是一个选项.

I've gotten XNA running perfectly fine on Visual Studio 2012 and publishing, installing and running the game works fine as well on any computers that already have the XNA Framework Redistributable 4.0 installed but when I attempt to install on a computer that doesn't already have it, the install fails due to it being missing. Furthermore, it isn't even an option in the Prerequisites menu on the program's publish properties.

当我打开一个较旧的项目时,该选项存在,但是带有一个黄色的感叹号三角形,我不相信它实际上是在设置的.

When I open up an older project, the option exists but with a yellow exclamation triangle and I don't believe it is actually being set.

有人知道我如何将XNA Redistributable重新添加到先决条件"选项中吗?

Does anyone know how I can add the XNA Redistributable back into the Prerequisites options?

推荐答案

说实话,我从来没有亲自使用先决条件功能来正式导出项目.但是,对于应用程序来说,在安装之前为它们的依赖项安装可再发行组件是很平常的事,因此我快速浏览了一下,发现有几个不同的程序会为您生成安装程序,同时还要考虑检查和安装缺少的依赖项.看起来最受欢迎的是 WiX XNA Installer .但是,为了更全面地研究此主题以及您可以采取的不同途径,我建议您查看

To be truthful, I've never personally used the Prerequisites feature for formal exporting of projects. However, it's a very common thing for applications to install the redistributables for their dependencies before installation, so I took a quick peek around and found that there are a couple of different programs which will generate installers for you which also take into account checking for and installing missing dependencies. It looks like the most popular one is WiX XNA Installer. However, for a much more thorough examination of this topic and the different routes that you could take, I would suggest looking at this answer by Ray Dey.

这篇关于XNA可再发行组件从发布先决条件选项中丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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