发布项目 [英] Publishing A Project

查看:55
本文介绍了发布项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


这可能是有史以来最愚蠢的问题之一,但我不得不问...

我完成了一个项目,这是我第一个非常大的项目,这要归功于我在此站点上获得的大量帮助.当我发布时,它不会包含所有图形文件.在发布之前,我是否必须将所有这些都导入到项目中.此时,我已经从硬盘驱动器上的多个位置将它们放入了表单.

同样,您是否必须告诉VB在发布时添加它可能会从Windows调用的任何外部程序,例如媒体播放器或音频播放器?

该程序在调试模式下运行良好,没有任何错误,我真的很想
在我拥有的其他一些系统上进行测试.

感谢您的建议...

David Johnson博士

This is probably one of the dumbest questions ever but I have to ask...

I completed a project, my first really large project thanks to a lot of help I got here on this site. When I publish is it will not include all the graphics files. Do I have to import all of them into the project prior to publishing. At this point I have placed them into the form from several places on my hard drives.

On the same note, do you have to tell the VB to add any external programs that it might call from windows, such as media player, or audio player when you publish it?

The program runs fine in debug mode with no errors and I would really like to
test it on a few other systems I have.

Thanks for the advice...

Dr. David Johnson PhD

推荐答案

有两种方法可以实现:第一种方法是将它们作为资源导入到您的项目中,另一种方法是将构建安装项目时将文件作为依赖项.如果您是从各个地方"加载它们,那么我会说您正在使用的总体方法是错误的:很难确保在建立设置时没有丢失文件,并且这种缺失不会被忽略.直到用户实际导航到特定表单(可能是在特定条件下)时才可见.

我知道这听起来需要做很多工作,但是我会将图形作为资源导入,并直接从Properties.Resources.MyNamedResource中使用它们-这样可以大大减少以后出错的可能性.
There are a couple of ways to do it: the first is to import them into your project as resources, the other is to include the files as dependencies when you build your setup project. If you are loading them from "various places" then I would say that the overall approach you are using is wrong: it is hard to be sure that you have not missed a file when building the set up, and such a lack would not be noticeable until the user actually navigated to a specific form (possibly under specific conditions).

I know it sounds like a lot of work, but I would import the graphics as resources, and use them directly from Properties.Resources.MyNamedResource - that way the chance of error later is highly reduced.


这篇关于发布项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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