locked
C# Adding content to folder created in solution explorer. RRS feed

  • Question

  • Ok,i created folder in solution explorer but when i instert content to these folder it just doesn't appear in solution explorer.I tyed to scope in these folders and refresh them but nope that just doesn't work.Any suggestions? 
    Friday, March 6, 2015 1:54 PM

Answers

  • can you show us some code please?

    try to create file in that folder like this

    string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, CreatedFolderName);
    and after that try to create files in it. Maybe you are sending your files in a wrong location.
    Friday, March 6, 2015 2:46 PM

All replies

  • can you show us some code please?

    try to create file in that folder like this

    string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, CreatedFolderName);
    and after that try to create files in it. Maybe you are sending your files in a wrong location.
    Friday, March 6, 2015 2:46 PM
  • Um i created folder by pressing right click on app in solution explorer and going to Add-Add new Folder,so didn't use any code
    Friday, March 6, 2015 2:54 PM
  • OK than, try the line of code I gave it to you just change it as

    string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Your FolderName");

    Friday, March 6, 2015 3:12 PM
  • Explain what you mean by this:

    when i instert content to these folder it just doesn't appear in solution explorer.I tyed to scope in these folders and refresh them but nope that just doesn't work.

    ... explain what it is you're trying to do, it's not clear from the above.


    ~~Bonnie DeWitt [C# MVP]

    http://geek-goddess-bonnie.blogspot.com

    Sunday, March 8, 2015 1:54 AM