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 .

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s