Work with .resx Resource files on vscode
I am now currently trying to learn a bit more about resource files and multiple language support, but i am having trouble to work with it on vscode, is there a proper way to work with .resx files without visual studio?
16 Replies
I think thats not exactly what i am looking for, i want to be able to reference, and generate the designer of the .resx file
I really don't get the obsession with vs-code, while at the same time a fully, specific, IDE, packed in a all-you-need package is available for free. People try desperately to hold on what is just a text-editor ¯\_(ツ)_/¯
Maybe the name is just misleading, they should name it like "Editor+"
resx files are just xml files thou. you can just edit it as you would any other xml file, if you want to
you dont need visual editors for everything
I will check that, thank you man
I understand what you mean, but my point is trying to be the least dependent on an IDE, i want to be able to code on my own, apart of the software i am using as a development tool
So advice you to use VI or emacs
Not using an IDE isnt making you a better developer. Its making you worse.
The people who are good at vim etc have it wired up with LSPs and have more or less similar QOL as full IDE users do
I wasn't joking when I wrote emacs
yeah, i search for it but was not successful, i wished there was something to help me on cli like "dotnet new resource" but it seems there isn't
I agree to you i just wanted to know how that works behind the gui but i think i might be unlucky
its just an xml file
its a combination of a xml schema (using xsd), some "resheader" tags and then comes the data
That's where you start to write your own macros/workflow scripts - and if you do so, you'll eventually end up with something that resembles an IDE - reinventing the wheel might be fun
I've implemented a json-based alternative to .resx files that uses MSBuild code gen, instead of VS design-time code gen. Maybe it would work for you?
https://github.com/MarkPflug/Sylvan.BuildTools.Resources
GitHub
GitHub - MarkPflug/Sylvan.BuildTools.Resources: Build-time resource...
Build-time resource file support in C# projects. Contribute to MarkPflug/Sylvan.BuildTools.Resources development by creating an account on GitHub.
Actually this is a pretty interesting solution, do you have a project example that implements it?
Unfortunately, I don't have a public project that uses it. Feel free to ask questions/submit issues on the repo if you need help or run into issues.
i see, thank you tho
Though it does have some "examples" in the unit test project:
https://github.com/MarkPflug/Sylvan.BuildTools.Resources/tree/main/source/Sylvan.BuildTools.Resources.Tests/Data
GitHub
Sylvan.BuildTools.Resources/source/Sylvan.BuildTools.Resources.Test...
Build-time resource file support in C# projects. Contribute to MarkPflug/Sylvan.BuildTools.Resources development by creating an account on GitHub.