I noticed some behavior when adding resx files to my solution in rider, which i would like to change / configure, but i don't know how:
- Rider 2019.2.1
- C# project with the Microsoft.NET.Sdk structure. The project file itself contains almost nothing
- Directory.build.props in our solution directory, which includes all .resx and .de.resx files as embedded resources and creates a <DependUpon> to their respective C# files.
As Expected: When adding a .resx file with the same name and path like a cs file, it's instantly and automatically added as a child of this .cs file.
Unexpected: When adding a .de.resx file with the same name and path as a .cs file, it's not added as a child of the cs file, but when I reload the solution, it appears as a child.
Unexpected: Even when I disable the Resx Generator in the 'Custom Tools' settings, Rider generates .Designer.cs files for every .resx file.
- Is there a way to automatically add all .resx files under their respective .cs files or reapply the Directory.Build.props automatically after a file has been added?
- What's causing the generation of the .Designer.cs file? I noticed, that it's not generated when I create the .resx files with a plugin using the Rider SDK