Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

sharepoint deploy resource files via feature

Posted on 2011-09-14
1
Medium Priority
?
448 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
ivan_vagunin earned 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

670 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