Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy a resource file to App_GlobalResource folder on activation

Does any one know the best way to deploy a resource file to the App_GlobalResource folder of the web application when a feature is activated?

like image 882
webwires Avatar asked Nov 17 '08 16:11

webwires


People also ask

What is RESX file in asp net?

You can use application resource files (. resx) to efficiently create a localizable Microsoft ASP.NET Web application. By using resource files, you can store localized values for controls. The localized values are based on a user's language and culture.

What is the extension of a resource file in asp net?

Resource files in ASP.NET have a . resx extension. Each localized resource file contains name/value pairs. You can use a text editor to customize a resource file's string values.


1 Answers

Thanks all for your answers, but as the best solution for SharePoint 2010 is the follow:

  • Add New Item > Module
  • Copy (or) Add your resource files there
  • Change "Deployment Type" property of each resource file to appGlobalResource
  • Change "Deployment Location > Path" property to empty so the resource file deploys properly to "App_GlobalResources" under your web application

enter image description here

like image 192
Moutasem al-awa Avatar answered Sep 27 '22 21:09

Moutasem al-awa