Skip to content

Build failure on Linux: Hardcoded Windows paths in LocalizationResourceGenerator #596

@MortenMunk

Description

@MortenMunk

Building LocalizationResourceGenerator on Linux crashes with a DirectoryNotFoundException / FileNotFoundException.

In Tools/LocalizationResourceGenerator/src/LocalizationResourceGenerator/Program.cs, the paths for LocalizationResourceOutPath and LocalizationResourcePath use Windows-style backslashes (\\). Linux treats backslashes as regular filename characters, causing the path resolution to fail.

I believe changing the backslashes to forward slashes (/). will fix the issue and work on Linux, without breaking the Windows build.

Example:

"../../src/IronyModManager/Localization/en.json"
instead of
"..\\..\\src\\IronyModManager\\Localization\\en.json"

Let me know if you would like me to make a PR.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions