Solved

sharepoint deploy resource files via feature

Posted on 2011-09-14
1
423 Views
Last Modified: 2012-05-12
I have a solution that deploys resource files via a solution package.  In my solution package.template.xml file, I added the entry below.  This deploys my resources.  I have a need to swap out the resource files and was hoping to have two features in the same pakage.  If I activate one feature, I would like to use one set of files, if I activate another, I would like to use another set of files.  Is this possible?  I would like to keep the names of the resource files identical though, so that I don't have to update legacy code.

<Solution xmlns="http://schemas.microsoft.com/sharepoint/">
  <ApplicationResourceFiles>
    <App_GlobalResourceFile Location="Resources\Riblet.resx"/>
  </ApplicationResourceFiles>
</Solution>

Open in new window

0
Comment
Question by:jackjohnson44
1 Comment
 
LVL 18

Accepted Solution

by:
ivan_vagunin earned 500 total points
ID: 36540987
Hi! I'ma afraid you can't do that - there is no way to deploy resource files using feature - resouces can be deployed only at solution (package) scope, not paticular feature.
If you want to override resource file on feature activation, you can write custom code for that in feature event receiver.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question