Groups | Blog | Home
all groups > visual studio .net general > january 2006 >

visual studio .net general : Added Folder contents in final build


acb
1/28/2006 6:17:51 AM
Hi,

I have a VS 2005 C# project to which I have added a folder. Into this
folder are various resources that are used within the program.

I have the line ItemsPath = Application.StartupPath + "\\Resources\\";
in my code and whilst in the IDE everything works fine. When I come to
publish the program to a folder and try to execute this, an exception
is raised that indicates that the file within the folder about could
not be found.

Can someone please tell me what am I doing wrong?

Thank You,
Al
acb
1/29/2006 10:23:41 AM
Update: I figured it out. The folders were part of the project; I had
dragged the files via Explorer and these were therefore unknown to the
IDE.

Thanks
AddThis Social Bookmark Button