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.
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.
It can be found in the main menu under Project -> Convert to Web Application when you have a . aspx file selected in solution explorer.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With