使用akavel rsrc工具

时间:2015-12-11 15:08:06

标签: go manifest rsrc

基本上我正在学习本教程: https://gowalker.org/github.com/lxn/walk

但是当使用akavel rsrc工具将清单文件构建到.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文件夹中,我只是更改了#test; manifest'中的清单的品牌。到windowService.manifest'但这是在命令中更新的,我不认为这是我的错误?

如果您对此有所了解,我将不胜感激,因为Google似乎没有特别回复对此工具有用的任何内容!

2 个答案:

答案 0 :(得分:1)

如果有人遇到同样的错误,你需要实际运行rsrc,所以对我来说步骤是:

1)在命令行中导航到rsrc.exe的位置:

对我来说,它是' C:\ GoProjects \ bin'

2)运行命令:

.\rsrc.exe -manifest '*PATHTOMANIFESTLOCATION*' -o rsrc.syso

3)在运行go build之前,将rsrc.syso文件复制回goproject的位置。

答案 1 :(得分:1)

执行@JackFrost提到的更简单的方法是使用%GOPATH%环境变量。

这使我在bin文件中编译清单文件时感到头疼。

%GOPATH%\bin\rsrc.exe -manifest file.manifest -o rsrc.syso