Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / November 2005

Tip: Looking for answers? Try searching our database.

Question about ResXFileCodeGenerator in VS2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Laurent Docquir - 04 Nov 2005 17:05 GMT
Hi all,

I want to centralize my localized strings in an external assembly but still
want to benefit from the new intellisense feature of VS2005.

So I create a new class library project names 'MyStrings' and add a new
resource file named 'Glossary.resx' to it. I add some strings and
automatically ResXFileCodeGenerator generates a csharp file named
'Glossary.Design.cs'. This file contains a class named 'Glossary' that
provides me with a property for each of the strings. So far so good: I now
have intellisense everywhere inside the class library project.

Next I create a new Win Forms Application and set a reference to
'MyStrings.dll'. Here comes the problem: I cannot access the 'Glossary'
class defined in MyString.dll. The reason is simple: ResXFileCodeGenerator
made this class internal !

My question : Do you know a way to make ResXFileCodeGenerator generate a
public class instead? Is it configurable?

I want to draw your attention to the fact that ResGen has a command line
parameter for this:
eg: ResGen.exe glossary.resx /str:c# /publicClass generates exactly the same
code as ResXFileCodeGenerator except that the class is public ;-)

Thanks in advance for any clues

Regards
Laurent Docquir
Marin Millar - 15 Nov 2005 17:19 GMT
Hi Laurent,
Currently it's not possible to configure the resource generation from
within the IDE.  However another customer requested this at the MSDN
product feedback center.  See MSDN Product Feedback Center link
:http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=
eaf58466-a6eb-4da9-bf2f-4949b5aff853
We do look at feature requests that many users have requested, so I
recommend voting on this one at the product feedback center, since the more
votes a given suggestion has, the more likely it is to be approved.  
Thanks,
Marin Millar [MSFT]

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.