Solved

sharepoint deploy resource files via feature

Posted on 2011-09-14
1
380 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
Comment Utility
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Join & Write a Comment

I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now