基本上,我正在学习本教程:
https://gowalker.org/github.com/lxn/walk
但是,当使用akavel rsrc工具将 list 文件构建为.syso文件时,我遇到以下错误:
rsrc : The term 'rsrc' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
我已经运行了go get并且程序包在goprojects文件夹中,并且我仅将 list 的 list 从“test.manifest”更改为windowService.manifest”,但这在命令中已更新,我不认为这是我的错误?
如果您能对此有所了解,我将不胜感激,因为google似乎并没有特别向该工具返回任何有用的信息!
最佳答案
如果有人遇到相同的错误,则需要实际运行rsrc,因此对我来说,这些步骤是:
1)在命令行中导航到rsrc.exe的位置:
对我来说是'C:\GoProjects\bin'
2)运行命令:
.\rsrc.exe -manifest '*PATHTOMANIFESTLOCATION*' -o rsrc.syso
3)在运行go build之前,将rsrc.syso文件复制回到我的goproject位置。