When you are localizing a SharePoint site, you may need to get your .resx files to the App_Global resources folder in your virtual directory for the web application. This gave us a bit of trouble, so I thought it would be worth writing down. And funnily enough, the answer is very simple and provided by Visual Studio 2010 (VS2010's integration with SharePoint 2010 is pretty awesome). 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 u...
This is just a short post for my own retention and edification - As it is considered best practice to deploy web.config modifications using the SharePoint object model and calling ApplyWebConfigModifications() and Update() on the SPWebService , I want to make note of a few caveats. When ApplyWebConfigModifications() is called, SharePoint behind-the-scenes looks at the collection of SPWebConfigModifications for EACH web application in the farm and applies those changes. It doesn't matter if you called it for a specific web application; this propagation of config changes is pushed for every web.config that is associated with a web application that contains these SPWebConfigModification entries. The problem here, is that if you have made any manual configuration changes (for example, if you have to encrypt a section for security purposes), once that ApplyWebConfigModifications() gets called, those entries are reverted back to whatever value they...
Easter inspired "Peep-shi" C got inspired by an article sent to her about sushi made with rice krispie treats, peeps, and fruit rollups. These are the result. I've been very bad at keeping with things I want to do, including post here. So here's another attempt at keeping this up. I would really like to try my hand at having a daily photoblog, but that may be a bit ambitious. So first thought: post at least once a week. Here goes...
Comments
Post a Comment