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
Switching to the legacy editor as it's still available and working.
check if it's mentioned in the project file
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.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
What's that?
it's a file that's automatically imported before your project file
you can import files manually too
I need to take a break. That might help. I'll look at it in a day or two.