Resources in applications

The following point is pretty straight & simple, bt keeping novel programmers in mind, posting this:-)
When we need to add any resource file for the application, for instance adding an xsd file, how do you add a reference to that file……in local folder?? In solution folder??
In above ways, ur application works well if, with in your system, bt not when deployed because ur bin does’t hav that reference file.  So for moving all your project dependencies to your bin folder, hav to set ‘copyToLocal’ property true to that resource, & in code, can refer to that path using currentDirectory()+resourceName .