看这个能不能帮你: The problemis that the WindowsSDKDir environment variable isn't defined for the context the build service is running in. If you take a look at the "Visual Studio 2008 Command Prompt" shortcut in your Start menu, you'll notice that it executes "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86. You'll want to add an Exec task like this to your build script: <Exec Command="%22$(VS90COMNTOOLS)..\..\VC\vcvarsall.bat%22 x86" /> That will set the WindowsSDKDir environment variable and do a number of other useful things (especially if you're building native C++ projects). Of course you'll want to specify x64 if your building for that platform rather than x86. Then you can call signtool like this: <Exec Command="%22$(WindowsSdkDir)bin\signtool.exe%22 /?" /> You would replace my "/?" with your actual signing parameters.
这个是微软签名工具
The problemis that the WindowsSDKDir environment variable isn't defined for the context the build service is running in. If you take a look at the "Visual Studio 2008 Command Prompt" shortcut in your Start menu, you'll notice that it executes "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86. You'll want to add an Exec task like this to your build script: <Exec Command="%22$(VS90COMNTOOLS)..\..\VC\vcvarsall.bat%22 x86" /> That will set the WindowsSDKDir environment variable and do a number of other useful things (especially if you're building native C++ projects). Of course you'll want to specify x64 if your building for that platform rather than x86. Then you can call signtool like this: <Exec Command="%22$(WindowsSdkDir)bin\signtool.exe%22 /?" /> You would replace my "/?" with your actual signing parameters.
http://d.download.csdn.net/down/253174/MrDJH 下载