We'll start by adding a New SharePoint 2010 item: an Empty element…

And name it "Resources"…

After adding the Empty Element Item to your project, you can add your .resx files to its folder. Once your resx file is there, you'll want to edit the properties to configure its deployment to the App_GlobalResources folder.
First, set the DeploymentType property to AppGlobalResource.

Once the Deployment Type is set, VS will automatically set the Deployment Location property to "{WebApplicationRoot}\App_GlobalResources\{PROJECT_NAME}\Resources\", which isn't really useful to us.

So, we expand the Deployment Location node, and edit the Path property. Basically just clear out the Path property, so that your .resx file gets deployed to the App_GlobalResources root folder. And that's it! When your package gets deployed, your .resx files will go where you need them. Hope that helps someone :)
Good one... saved some time ;)
ReplyDeleteThanks buddy
Thanks, definitely helped :)
ReplyDelete