You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just including the EmbeddedResource block allows the project to compile the resx file into a usable Resources class.
The problem is that the generated Resources isn't picked up by the LSP at that point.
(Even if the project compiles without any issues)
Only after adding the Compile block, will the class be recognized by the LSP.
The issue is, that including that second part generate a CS2002 warning :
This extension used to be able to handle only having the first block, so why is the second one required now ?
This feels like a bug in the extension, but at the same time, is this the appropriate way to generate my classes for localization ?
Am i supposed to change some settings ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I'm currently reading the documentation for source generating a Resources class from .resx files.
https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/localization?view=net-maui-10.0#vs-code-setup
The page state to use the following to allow vscode users to be able to compile resx file into classes that can be used :
Just including the
EmbeddedResourceblock allows the project to compile the resx file into a usable Resources class.The problem is that the generated Resources isn't picked up by the LSP at that point.
(Even if the project compiles without any issues)
Only after adding the
Compileblock, will the class be recognized by the LSP.The issue is, that including that second part generate a CS2002 warning :
This extension used to be able to handle only having the first block, so why is the second one required now ?
This feels like a bug in the extension, but at the same time, is this the appropriate way to generate my classes for localization ?
Am i supposed to change some settings ?
All reactions