SharePoint 2010 Resource File Deployment Done Easy

May 28 2012 64 comments

Deployment of resource files with SharePoint has always been a little tricky. With MOSS we used features to provision resource files. With SharePoint 2010 it was a little easier but not enough.
There are blogs with some ideas how to make it easier to deploy resources in multiple locations here, here and here. They did not anyways fill all my requirements.

I do not want to:
1. Use feature to deploy resources
2. Keep two copies of the same resource file in the project
3. Edit the manifest.xml in visual studio.
4. To have “Resources” subfolder inside App_GlobalResources folder.

With the help of the blog post above, I managed to create solution where you only keep one copy of the resource file and that it is easy to manage and easy to deploy to the whole farm.

Add a mappedfolder to your project and point it to 14\Resources folder. Then add your custom resource file(s) to it:

Add a Empty Element to your project and name it App_GlobalResources:

Delete the feature it created automatically, you will not need it:

Delete the Elements.xml file it automatically created, you will not need that:

Edit the SharePointProjectItem.spdata file inside the App_GlobalResources folder (If you cannot see it, press “Show All Files” button from the Solution Explorer). Replace the empty

<Files />

node with the following xml, with your own path and file name:

  <Files >
    <ProjectItemFile Source="..\Resources\EasyResource.en-US.resx" Type="AppGlobalResource"/>
    <ProjectItemFile Source="..\Resources\" Type="AppGlobalResource"/>
    <ProjectItemFile Source="..\Resources\EasyResource.resx" Type="AppGlobalResource"/>

If you add new resource files later remember to update this file too.

Double click the Package folder and add the App_GlobalResource item to the Package:

Build and deploy, all resource files will be deployed to 14Hive and WebApplication.


When editing the resource files, just a normal Update-SPSolution command with PowerShell will update the resources to the whole Farm. I hope this helps someone struggling with the manual copies or other hacks with deployment of resource files.

Jerry Seinfeld: Why not? We’re neighbors. What’s mine is yours.
Cosmo Kramer: [leaning against the door-frame and looking around in wonder] Really?

Popularity: 10% [?]

64 comments to “SharePoint 2010 Resource File Deployment Done Easy”

  1. sex luzern says:

    Enjoy sexy contacts with fine ladies in EU only at sex luzern

  2. Taschengeld Ladies ist der Ort, an dem man mit der Suche nach Sex beginnt. Menschen suchen an unterschiedlichen Orten nach Sex. Manche gehen in Bars und Clubs, während andere den ersten Kontakt bei anderen gesellschaftlichen Zusammenkünften herstellen. Der beste Ort für die Suche nach Fuckbuddies ist jedoch online.

  3. Sex Berlin says:

    Sex Berlin ist eine der bekannteren Casual-Dating-Seiten für diskrete Begegnungen und Affären. Diese Website, die sich an “gebundene und verheiratete Menschen” richtet, gilt definitiv als unanständiger Akteur in der Welt des Online-Datings.

  4. Sexoglasi says:

    Sexoglasi je enostaven za navigacijo, saj je večina razpoložljivih virov na levi strani zaslona. Velik vijoličen gumb na vrhu domače strani obiskovalce poziva, naj se brezplačno registrirajo na spletnem mestu.

  5. Mamie Sexe says:

    If you are looking for hot girls ready for casuala contacts visit our web platform Mamie Sexe

  6. Transexuel Sex á Rennes is fine web place for casual sexy chat contacts with hot ladies in France

  7. shemale sex reims for your own sexy chat contacts in France

  8. Angel17 says:

    I find this so informative. Thanks for sharing! washing machine installation

  9. Nantes Sexe says:

    If you are alone check our web platform for casual chat contacts in France Nantes Sexe

  10. Sexafspraak says:

    Sexafspraak is een zeer populaire hookup site voor affaires en soortgelijke soorten relaties. Maar ook mensen met een vaste relatie of die een ander zoeken voor een triootje zitten op de site.

  11. If you want to find out something about fine ladies in EU you must check Sexanzeigen in Köniz

  12. If you are alone check casual ladies from Italy Shemale Napoli

  13. Blaine says:

    Wonderful. Let me try this to our fence company and see how it works.

  14. Benny says:

    To remove stubborn clogs, a licensed plumber can utilize a drain snake or auger, which are specialized instruments. Check our website!

Leave a Reply