Resource Explorer not updating .resx.cs file when I make changes

I have Resources.resx in my project. Prior to VS 2022 17.1.0, when I added resources to that RESX, Resources.resx.cs was updated every time I saved. But not now. What's going on?
7 Replies
Will Pittenger
Will PittengerOP5mo ago
Switching to the legacy editor as it's still available and working.
Anton
Anton5mo ago
check if it's mentioned in the project file
Will Pittenger
Will PittengerOP5mo ago
Unfortunately, shortly before you posted, I was trying to manually switch from net-7.0-windows* to net-8.0-windows in all my csproj files. Rather than going to each property window for each csproj file, I used Notepad++ to quickly change them with a regular expression. But I messed up the regular expression and it wiped out the project file (including the one referred to above) from the first match on. Many of the csproj files hadn't been backed up for some reason and I was unable to check them in as things weren't compiling. I've largely rebuilt it those, but am still getting various errors regarding one of the assemblies that were clobbered. Among those is a control in a DLL assembly, causing problems. It can't find InitializeComponent. Possible cause is that the XAML compiler can't find the base class from the assembly causing problems. Not in either. That's fixed. No it isn't. Now it's fixed.
Anton
Anton5mo ago
That's what you should do I never use tools to edit the project files I always do it manually And if you understand how msbuild works, I suggest you do too Consider using Directory.Build.props
Will Pittenger
Will PittengerOP5mo ago
What's that?
Anton
Anton5mo ago
it's a file that's automatically imported before your project file you can import files manually too
Will Pittenger
Will PittengerOP5mo ago
I need to take a break. That might help. I'll look at it in a day or two.
Want results from more Discord servers?
Add your server