我使用的是 Windows 10。我没有 makecert.exe,当我尝试运行命令来生成证书时我才知道,例如makecert.exe
我得到错误:
'makecert' is not recognised as an internal or external command, operable program or batch file.
我已经为 Windows 10 安装了 Windows SDK。
最佳答案
它可能已安装,但可能只是不在路径中。
例如,我可以在 C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64
下找到它但我也可以在 C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86
下找到另一个.路径中的确切版本将根据您安装的 SDK 的确切版本而有所不同。
这些路径都不在我的 PATH
中虽然环境变量(我不记得在安装 SDK 后明确删除它),所以我不能只说 makecert
在命令行中,我必须给出我想要运行的路径的完整路径。
尝试查找副本的方便方法是 where
命令。在这里,我将搜索限制在 SDKs 目录中,但您可以根据需要搜索整个硬盘:
C:\Users\Damien>where /R "C:\Program Files (x86)\Windows Kits" makecert.*
C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\arm64\makecert.exe
C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64\makecert.exe
C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86\makecert.exe
关于c# - Windows 10 中缺少 makecert.exe,如何获取和使用它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51418366/