发布包含视频文件的项目 [英] Publish a project with video files

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

问题描述

在一个项目上工作了几个星期后,我准备发布这个程序。

我已经编程了7个多月,所以我很新

到这个。我在过去发布了完全自包含的程序。

这是图形全部在图像列表中,它只包含一个

主表单。



我的问题是,是否有人可以指出我将解释如何将b $ b包括的视频和声音文件程序但存储在主驱动器上的
a文件夹中。是什么东西可以将CD中的文件复制到安装程序的人的硬盘驱动器上?



程序运行正常模式然而当我尝试发布

程序时它不会包含这些文件。



谢谢...

After working for weeks on a project I am ready to publish the program.
I have been programming for a little over 7 months so I am fairly new
to this. I have in the past published programs that are full self contained.
That is the graphics were all inside the image lists and it contained only one
main form.

My question is, is there a place someone can point me that will explain how to
include video and sound files that are called by the program but stored in
a folder on the main drive. Something that would copy the files from the CD
to the hard drive of the person installing the program?

The program runs fine in debugging mode however when I try and publish
the program it will not include these files.

Thank You...

推荐答案

假设您使用Visual Studio或InstallShield的Click Once Publish功能生成安装程序。



您是否已将文件添加到项目中?



在解决方案资源管理器中右键单击项目名称。

点击添加

单击现有项目

在文件对话框中,将文件类型更改为视频文件

找到您的视频文件并单击添加按钮

在解决方案资源管理器中,右键单击视频文件的名称

单击属性

将构建操作更改为内容

将复制到输出目录更改为Co py始终
Assuming you are using Click Once Publish feature of Visual Studio or InstallShield to generate a setup program.

Did you add the files to the project?

Right-Click on Project name in the Solution Explorer.
Click on Add
Click on Existing Item
In the file dialog box, change the filetype to Video Files
Find your video file and click the Add button
In the Solution Explorer, right-click on the name of the video file
Click Properties
Change "Build Action" to "Content"
Change "Copy to Output Directory" to "Copy Always"


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

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