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
Solved

sharepoint deploy resource files via feature

Posted on 2011-09-14
1
413 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

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.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.

808 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