Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create designer.cs file from ResXRersourcewriter generated resource file

I got a programm that generates .resx resource files. Those resource files are used in other projects, that isnt in the same solution as the project that generates the resource files.

I wonder now, if its possible to generate a designer.cs file from the resource file, so that you can access the resources directly without using the resxresourcereader.

like image 776
JayTee Avatar asked Jan 04 '13 08:01

JayTee


People also ask

How do I generate designer CS from Resx?

Right click on the Resources. resx and select "Run Custom Tool". Right click the resx-file and select properties. Add the value "PublicResXFileCodeGenerator" to the "Custom Tool" property then the designer file will be generated.

How do I get designer CS file?

It can be found in the main menu under Project -> Convert to Web Application when you have a . aspx file selected in solution explorer.


1 Answers

Open the resx file and on its toolbar there's an Access Modifier menu. Set this to Public. This will generate a *.Designer.cs file.

enter image description here

like image 90
Paul Fleming Avatar answered Sep 23 '22 06:09

Paul Fleming