• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 930
  • Last Modified:

Visual Studio: Publishing programs so that sub folders in my project work

Hi, i've got a program coming along nicely which uses a few items stored in sub folders of the main program directory (xml settings, images etc).  I tried to publish the project in visual studio via the build menu, but once compiled, the folders seem to go elsewhere, therefore my references are out in the project.

How do i ensure that the folders stay consistent??

Any help would be great

  • 2
1 Solution
How are you referencing the folders in your project?

Do you use 'Application.StartupPath'?
Artform04Author Commented:
ye, application.startupPath. the subfolders are all in the main oot directory, but obviously the startup path is in the bin folder. So i use "../../" to go up to the root directory of the app, not the Bin.  

I looked into where the files go when it is published and it sends the bin and my subfolders into different folders about one or two levels higher???
Try creating directories and files under you bin folder and then run your application.
Artform04Author Commented:
hi, do u mean in the release / debug folders or just the BIN folder??

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now