Artform04
asked on
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
Thanks
How do i ensure that the folders stay consistent??
Any help would be great
Thanks
ASKER
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???
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???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi, do u mean in the release / debug folders or just the BIN folder??
Phil
Phil
Do you use 'Application.StartupPath'?