使用akavel rsrc工具
Using the akavel rsrc tool
基本上我正在学习本教程:
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 似乎 return 对这个工具没有任何帮助!
如果有人 运行 遇到同样的错误,您实际上需要 运行 rsrc,所以对我来说,步骤是:
1) 在命令行中导航到 rsrc.exe 的位置:
对我来说是'C:\GoProjects\bin'
2) 运行 命令:
.\rsrc.exe -manifest '*PATHTOMANIFESTLOCATION*' -o rsrc.syso
3) 在 运行ning go build 之前将 rsrc.syso 文件复制回我的 goproject 的位置。
执行@JackFrost 提到的操作的更简单方法是使用您的 %GOPATH% 环境变量。
这让我免去了在 bin 文件中编译清单文件的麻烦。
%GOPATH%\bin\rsrc.exe -manifest file.manifest -o rsrc.syso
基本上我正在学习本教程: 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 似乎 return 对这个工具没有任何帮助!
如果有人 运行 遇到同样的错误,您实际上需要 运行 rsrc,所以对我来说,步骤是:
1) 在命令行中导航到 rsrc.exe 的位置:
对我来说是'C:\GoProjects\bin'
2) 运行 命令:
.\rsrc.exe -manifest '*PATHTOMANIFESTLOCATION*' -o rsrc.syso
3) 在 运行ning go build 之前将 rsrc.syso 文件复制回我的 goproject 的位置。
执行@JackFrost 提到的操作的更简单方法是使用您的 %GOPATH% 环境变量。
这让我免去了在 bin 文件中编译清单文件的麻烦。
%GOPATH%\bin\rsrc.exe -manifest file.manifest -o rsrc.syso