C
C#4mo ago
oJaime

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
oJaime
oJaimeOP4mo ago
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
SpReeD
SpReeD4mo ago
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+"
Pobiega
Pobiega4mo ago
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
oJaime
oJaimeOP4mo ago
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
SpReeD
SpReeD4mo ago
So advice you to use VI or emacs
Pobiega
Pobiega4mo ago
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
SpReeD
SpReeD4mo ago
I wasn't joking when I wrote emacs
oJaime
oJaimeOP4mo ago
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
Pobiega
Pobiega4mo ago
its just an xml file its a combination of a xml schema (using xsd), some "resheader" tags and then comes the data
SpReeD
SpReeD4mo ago
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
MarkPflug
MarkPflug4mo ago
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.
oJaime
oJaimeOP4mo ago
Actually this is a pretty interesting solution, do you have a project example that implements it?
MarkPflug
MarkPflug4mo ago
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.
oJaime
oJaimeOP4mo ago
i see, thank you tho
MarkPflug
MarkPflug4mo ago
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.
oJaime
oJaimeOP4mo ago
nice, i will check it out
Want results from more Discord servers?
Add your server