1
Vote

Need a public constructor for generated resources

description

For Silverlight localization and in other scenarios, need a public constructor, not a protected one (or a private one that the default tool generates).
 
A change at ResXFileCodeGeneratorBase.cs, method CreateOuterClass, is needed to write:
 
CreateConstructor(code, outerClassDeclaration, Visibility.Public);
 
instead of
 
CreateConstructor(code, outerClassDeclaration, Visibility.Protected);
 
Problem is that one needs to download Visual Studio SDK etc. to rebuild these sources. Also you might opt to provide a derivative class like PublicResXFileCodeGenerator to do the above behaviour

comments