Organising the output files

  • Thread starter Thread starter Dobieslaw Wroblewski
  • Start date Start date
D

Dobieslaw Wroblewski

Hi,

I am developing a project in C# for a PPC.

I have included several files in the project (icons, configuration, etc.).
They have 'Build Action' set to 'Content' and they are downloaded to the
directory of the executable.

I would like to organise the output files a bit (put all icons to Icons
subfolder, etc.) but simply organising the project in folders does not help
and I have no clue what to try next.

Can anyone help?

DW.
 
As you have found there is no built-in way of doing this. You have to work
around it (for development - as for deployment you can create folders etc).

A workaround is to create a class library project (one per folder) that you
reference from your main project; set the 'output folder' of the project to
whatever you like. Include your files (per folder) in that project as
content (no need for any real code in that project).

Alternatively write some code you run on startup to copy the files from the
executable's directory to the folders you want.

Cheers
Daniel
 
Back
Top