Solved

sharepoint deploy resource files via feature

Posted on 2011-09-14
1
430 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 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

751 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