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

Pity that such a simple thing needs so much hassle.

DW.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top