XNA Redistributable missing from Publish Prerequisites options

大兔子大兔子 提交于 2019-12-07 07:57:03

问题


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.

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


回答1:


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.



来源:https://stackoverflow.com/questions/17981495/xna-redistributable-missing-from-publish-prerequisites-options

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!