如何添加媒体文件/文件夹到一个winform应用程序.NET [英] How do i add media files/folder to a winform app .NET
本文介绍了如何添加媒体文件/文件夹到一个winform应用程序.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想提出一个游戏的示例应用程序。我有一个文件夹,我设置为当前目录从视觉工作室,其中包括PNG格式,OGG,config.json内等。
I am making an example app of a game. I have a folder i set as the current directory from within visual studios which includes pngs,ogg,config.json,etc.
当我发布不包括这些文件。我如何正确添加媒体文件/文件夹到项目?
When i 'publish' these files are not included. How do i properly add a media files/folders into the project?
推荐答案
您右键点击你需要的文件,选择属性
,并设置复制到输出目录
设置为复制始终
或如果副本更新
。
You right click on the files you need, select Properties
and set the Copy To Output Directory
setting to either Copy Always
or Copy if Newer
.
这将确保他们发表。
这篇关于如何添加媒体文件/文件夹到一个winform应用程序.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文