Solved

public access to generated internal resource file from library

Posted on 2008-06-25
2
613 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

864 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

25 Experts available now in Live!

Get 1:1 Help Now