Xo is experimental. The source is now public on GitHub, or try Xo in your browser.
Menu · XO1517

Docs

XO1517: a windows resource input cannot be used

error · reported by the build

xo build --versioninfo=FILE.json reads goversioninfo’s JSON (FixedFileInfo, StringFileInfo, VarFileInfo, IconPath, ManifestPath; paths relative to the JSON file), --icon=FILE.ico an icon file, and --manifest=FILE an application manifest, and writes them as the program’s resources (decision 0560). A file that is missing, JSON that does not parse, or an icon whose headers are not an ICO stops the build; the message is goversioninfo’s.

Example

xo build --targets=windows/amd64 --versioninfo=versioninfo.json .   # versioninfo.json missing

Fix

xo build --targets=windows/amd64 --versioninfo=cmd/app/versioninfo.json .

Run xo explain XO1517 for this text in a terminal, or see section 10.6 of the specification.