Search code examples
.netvisual-studio-2010visual-studiosoftware-distribution

How do i add media files/folder to a winform app .NET


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?


Solution

  • 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.

    This will make sure they are "published".