Solved

public access to generated internal resource file from library

Posted on 2008-06-25
2
610 Views
Last Modified: 2012-06-21
Good Day,

c#, .net 2.0, vs.net 2005

I have two projects, one being the web project and the other is the library.  Within the library we have some resource files we are using for errors and the like.  They got auto generate via ResXFileCodeGenerator, and notice that they are all internal.  

I would like to gain access to these resouce files from the web app.  Is there an easy way of doing this?

Thanks in advance,
Kris
0
Comment
Question by:kdunnett
2 Comments
 
LVL 5

Accepted Solution

by:
JuckMan earned 500 total points
ID: 21868477
You create a helper method in your library that could access the resource file and return the results. In this way your web application does not need to know where the resources are stored.

For example your library could implement object GetResourceValue(string resourceName)
when this method is called read the resource file part of the assembly and if the specified resourceName exists read it and return to the caller..
0
 

Author Comment

by:kdunnett
ID: 21909656
JuckMan,

Sorry for the lateness... got sided tracked on another project.

I figured that was the way... was hoping that there could of been something 'more cool'.

Thanks... you get the points.
Kris
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

21 Experts available now in Live!

Get 1:1 Help Now