Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get VS2010 to generate Resources.Designer.cs with a public constructor instead of internal?

Each time I edit a resource in resources.resx, Visual Studio regenerates Resources.Designer.cs with an internal constructor.

I need this constructor to be public. Is there a way to adjust this?

like image 309
Brandon Avatar asked May 04 '11 17:05

Brandon


1 Answers

Follow these steps: Open the project properties (i.e. the one for which Resources you want to be public). Select the Resources tab. Next to the Top you should be able to see the Access Modifier DropDownList and there you can choose the Internal or the Public. That is it :)

like image 70
Julian S Avatar answered Oct 05 '22 03:10

Julian S