我不能运行另一台计算机上发布的应用程序 [英] I can not run a published application on another computer

查看:184
本文介绍了我不能运行另一台计算机上发布的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Visual Studio C#与XNA开发的游戏。当我发布应用程序,在ClickOnce应用程序,它工作正常,我的电脑上。不过,我想为.zip文件夹,并通过FTP上传网上,当我下载并安装一个不同的计算机上这是行不通的。它只是说,'应用程序名称'已停止工作。谁能帮我?

I have developed a game in Visual Studio C# with XNA. When I publish the application, in a ClickOnce Application, it works fine on my computer. However, I tried to .zip the folder and upload online through ftp and when I download and install on a different computer it does not work. It just says "'Application Name' has Stopped Working". Can anyone help me?

推荐答案

你所得到的错误消息,因为正确版本的.NET Framework或XNA框架是没有安装。

The error message you are getting is because the .NET Framework or XNA Framework of the correct version is not installed.

您可以简单地在目标计算机上安装它们,但想必你想要得到的ClickOnce工作。

You could simply install them on the target machine, but presumably you want to get ClickOnce working.

右键点击您的项目,然后单击属性。首先,转到应用程序,并记下目标框架中。然后去发布页面,并单击先决条件。通常情况下,你将需要:

Right click your project and click Properties. First of all go to the Application and make a note of the "Target Framework". Then go to the Publish page and click Prerequisites. Typically you will need:


  • 的Microsoft .NET Framework 4客户端配置文件(x86和x64)

  • 微软XNA Framework可再发行4.0

  • 的Windows Installer 3.1

如果您正在使用XNA的其他版本或.NET Framework,则需要选择适当的先决条件有(或更改你的目标框架的版本)。 Windows安装程序是通过的ClickOnce本身所需。

If you are using other versions of XNA or the .NET Framework, you will need to select the appropriate prerequisites there (or change the version of the framework you are targeting). Windows Installer is required by ClickOnce itself.

同时,记下复选框在最高层(应检查)。它读取创建安装程序来安装必备组件。这意味着的是,发布工具将创建一个的setup.exe 去与你的项目。的这是一个可执行文件,是负责安装的先决条件的(然后你launchs安装的ClickOnce)。如果您是直接使用ClickOnce安装,它可能工作,但你不会已经安装了特殊待遇,如果他们缺少你的游戏将无法正常工作(与钝错误消息)。

Also take note of the checkbox at the very top (it should be checked). It reads "Create setup program to install prerequisite components". What this means is that publish tool will create a setup.exe to go with your project. It is that executable that is responsible for installing the prerequisites (and then launchs your ClickOnce installer). If you install directly with ClickOnce, it may work, but you won't have installed the perquisites, and your game will fail to work (with that obtuse error message) if they are missing.

也看到这个答案:的可行性在PC上的 XNA游戏

See also this answer: Feasibility of an XNA game on PC

这篇关于我不能运行另一台计算机上发布的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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