I am using .resx for string resources in my Xamarin.Forms project. I have a TextResources.resx file and it generates a TextResources.Designer.cs file when compiled from Xamarin Studio. The properties of the .resx files are:
Build Action - EmbeddedResource
Custom Tool - PublicResXFileCodeGenerator
However the problem is with our automated build using CLI. The xbuild command is not supposed to generate the TextResources.Designer.cs file and hence the build fails. I need to use the resgen utility to generate this file and include it as a build step before running xbuild.
But, on a Mac the following resgen command does not work and shows up the Usage guide instead.
resgen /src:cs TextResources.resx
Can someone share their experiences on this please?
Posts
Hi hemant,
Did you manage to sort this out? I'm facing the same problem.
Thanks
In other words, does anyone know a way to run the Custom tool: PublicResXFileCodeGenerator on the command line to a specific file on a MAC?
Thanks
Not yet @JoaoSilva.7604. I am surprised there's no one to help here.
Anyone to help here? - @DavidOrtinau @BryanHunterXam
I don't think it's possible. The resgen.exe in the mono framework doesn't contains arguments like "publicclass". And that's really sad.