Brightspace / rules_csharp

Bazel rules for C#
Apache License 2.0
8 stars 5 forks source link

Cross-platform resgen (.resx compilation) #10

Open j3parker opened 5 years ago

j3parker commented 5 years ago

We have been using the system resgen at D2L (not included in this repo). That's Windows-specific and also kind of bad.

It looks like .NET Core doesn't have an equivalent to resgen.exe at the moment. It appears to live inside an MSBuild task.

We could add msbuild to our toolchain and generate a stub project to compile resx. Ugly, but I think it'd work. We wouldn't download msbuild unless you use resx so I think this would be fine for now.

jrbeverly commented 4 years ago

I'm going to take a look if we are able to use mono's implement of resgen.exe, as if it works cross-platform (and isn't a hassle to install), it may be a good fit.

Otherwise, I'll take a look about what generating a stub project for resx compilation would look like.