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

Resources Folder

I have added three resource files into my project, I have a control that requires the full path to these files (so I cant use my.resources). When I distribute the project is there a standard place to put the resources folder ie under the application root. What I want to happen is that if I code the filename it stays the same when distributed. Any ideas
0
rocky050371
Asked:
rocky050371
  • 4
  • 3
1 Solution
 
Bob LearnedCommented:
If you included resources into your project, and then set the build action to 'Embedded Resource', then you can use them without having to have a folder on the destination drive.

Bob
0
 
rocky050371Author Commented:
But I need to provide the control with a relative path to the file
0
 
Bob LearnedCommented:
For 2005, there is the App_GlobalResources and App_LocalResources folder, if you are using ASP.NET.  If you aren't, then you can name the folder anything reasonable, like Resources.

Bob
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
rocky050371Author Commented:
I take it I set there path to a temp directory then when I release it set it to Application Path\Resources
0
 
Bob LearnedCommented:
You can use the Resources folder under the \bin\Debug folder during development to have the same folder structure.

Bob
0
 
rocky050371Author Commented:
Thank you, is the correct way to use the application.path method
0
 
Bob LearnedCommented:
That would be Application.StartupPath.

Bob
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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