473,325 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Deploying Resource Files Separately...

In a project I am working on, it sounds like resource files are what I need
(to group things like error message strings).

If I put a resource file in a project, everything will work fine. However,
what I would like to be able to do is to put the resource files in a code
library of some sort (I am not sure if I am saying that correctly). From
reading some of the documentation (and some painful trial and error), I have
figured out how to make a public class with methods that expose the resources
(using the resgen and al utilities). Unfortunately, I have to compile these
components manually (which can be quite painful).

My question is whether or not there is a way to do this automatically in a
..NET project. The /publicClass switch is what does the trick but where would
I specify this switch in a project? Is it even possible? I have noticed
that the class I am expecting does get generated (or appears that way) but
all of the methods are marked as internal.

Any help will be most appreciated.

Thank you,

Jason Richmeier
May 1 '06 #1
1 1386
Hi Jason,

Thank you for posting.

As for the VS 2005's built-in resx code generator, it does has the
limitation on the generated strong-type class's accessor. Currently, the
generated class is limited to internal only so that only the project
assembly itself or other friend assemblies can access the generated
resources. This is actually due to the consideration that such generated
resource are designed as local resource which will be used for internal
projects. For public strong-typed classes, we may still have to use the
commandline resgen tool.

BTW, I've found an code project article which has mentioned a 3rd party
extended resx generator custom tool which can help build public
strong-typed resource access class:

#Extended Strongly Typed Resource Generator
http://www.codeproject.com/useritems...asp?print=true

Hope this helps some.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
May 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jan Bares | last post by:
Hi, I have a resource.rc in my project. The resource.rc includes another.rc file in "Compile time directives". Unfortunately, when I change the another.rc, the resources are not compiled, I have...
0
by: Srini | last post by:
I want to be able to change resource files as content so that I change them without compiling. Can anyone help me out
2
by: timsohn | last post by:
I am trying to deploy the most basic web service (Hello World) example to my website, but am having significant trouble doing so. Here is what I am doing: 1) Create a New Web Service in VS 2005...
1
by: Duncan | last post by:
Guys a little please, I'm creating a windows application that uses a webservice and WSE1.0 to talk to a database, currently this works fine when using localhost, I now want to test the...
2
by: Jeff | last post by:
Hey ASP.NET 2.0 I'm wondering when deploying a web application are the .resx files placed in the \Bin directory? I guess they are not placed in the \Bin directory, instead I think they are...
2
by: aptenodytesforsteri | last post by:
I have an ASP.NET 2.0 application I've localized to English, French, German, and Italian. I used resource (.resx) files. Most of the site is static content, easily 90% of it, so I thought...
1
by: =?Utf-8?B?U3FsQmVnaW5uZXI=?= | last post by:
Hi I am writing batch files to deploy the .NET 2.0 application. I use xcopy commads and list out all those file extensions which are needed. Normally till .NET framework 1.1 it used to work for...
0
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System;...
2
by: =?Utf-8?B?Y3lydXM=?= | last post by:
Hi everybody, I have created a simple web form which contains a repeater. every item of the repeater has a button to delete the tiem. my web form uses Resource files to globalizing the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.