locked
Add a folder tree as app's content

    Question

  • I would like to add a folder, with all it's files and files in subfolder to the project as the app's content. I'm doing something very stupid that, create a new filter, add files, set the files' property as content, add sub filters, add files again...

    I'm wondering if there's any way to add all contents in a folder as the app's content at one click while keep the tree structure?

    Thanks!


    • Edited by labratwin32 Tuesday, November 22, 2011 8:07 PM
    Tuesday, November 22, 2011 8:06 PM

Answers

  • Oh, I was asking about visual studio, not my own application. I wanted to add the content files to a project and deploy with the exe file. Sorry I didn't make it clear, But thank you all the same.


    Oh alright. Sorry about that.

    There is a Show-all-files button in the Solution Explorer toolbar. Clicking that will show folders not part of your projects.  Right click on the folder you need to include and select Include-in-project from the context menu.


    http://blog.voidnish.com
    • Marked as answer by labratwin32 Tuesday, November 22, 2011 10:07 PM
    Tuesday, November 22, 2011 9:32 PM

All replies

  • Metro does not include a tree-view-control. Not sure if that's by design or due to lack of time. You'd have to roll your own custom control for now, which may not be all that trivial.
    http://blog.voidnish.com
    Tuesday, November 22, 2011 8:40 PM
  • Oh, I was asking about visual studio, not my own application. I wanted to add the content files to a project and deploy with the exe file. Sorry I didn't make it clear, But thank you all the same.
    Tuesday, November 22, 2011 9:20 PM
  • Oh, I was asking about visual studio, not my own application. I wanted to add the content files to a project and deploy with the exe file. Sorry I didn't make it clear, But thank you all the same.


    Oh alright. Sorry about that.

    There is a Show-all-files button in the Solution Explorer toolbar. Clicking that will show folders not part of your projects.  Right click on the folder you need to include and select Include-in-project from the context menu.


    http://blog.voidnish.com
    • Marked as answer by labratwin32 Tuesday, November 22, 2011 10:07 PM
    Tuesday, November 22, 2011 9:32 PM
  • Oops! that works fine, Thanks!
    Tuesday, November 22, 2011 10:07 PM