除非用户登录,否则VS无法签名 [英] VS fails to sign unless user is logged in

查看:82
本文介绍了除非用户登录,否则VS无法签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的构建过程使用HTCondor(https://research.cs.wisc.edu/htcondor)在运行Windows 7专业版和VS 2010的VM计算机上安排构建。  condor服务作为本地系统运行帐户,但实际构建的子进程运行
作为本地计算机用户condor_usr1。


当尝试编译excel插件时,构建过程将始终在正常情况下失败当任何用户(condor_usr1或域用户)通过远程桌面或通过vSphere控制台登录到计算机时,情况总是会成功。
错误低于

 C:\Program Files(x86)\ MSBuild\Microsoft\VisualStudio \v10.0 \ OfficeOoolTools \ Microsoft.VisualStudio.Tools.Office.targets(264,9):错误MSB3482:签名时发生错误:系统找不到指定的文件。 
------开始项目'ExcelMSI'的预构建验证------
错误:无法找到源文件'D:\ path\to\proj \\ \\ bin \ExcelAddIn.vsto'对于文件'ExcelAddIn.vsto',位于'[TARGETDIR] \ bin',文件可能不存在或被锁定。

I已将私钥.pfx安装到可用的每个证书存储区(个人,受信任的根CA等,但不受信任/已撤销),包括condor_usr1和本地系统帐户(使用此处描述的psexec技巧  http:// blogg .sigma.se / en / Development / Mario-Sannum / Dates / 2015/2 / Fixing-ClickOnce-certificate-signing-for-TeamCity /)
仍然收到此错误。


密钥是使用makecert和pvk2pfx创建的。
https://msdn.microsoft.com/en-us/library/ff699202.aspx


如何我可以在没有用户登录的情况下使构建成功吗?

为什么构建会受到用户是否登录的影响?

解决方案

您好,


>>错误 无法 查找源文件
'D:\ path\to \ proj \ bin \ Excel \\ Excel \\ .vsto' 文件
'ExcelAddIn.vsto' 位于 in
'[TARGETDIR] \bin' 文件可能不存在
已锁定 。<<


请将目标文件夹中的文件退出。你可以直接在Visual Studio中构建解决方案时重现这个问题吗?


如果是的话,问题似乎与HTCondor有关,需要特定的许可。我建议您从HTCondor获得官方支持。


希望它有所帮助。


问候&费


Our build process uses HTCondor (https://research.cs.wisc.edu/htcondor) to schedule builds on VM machines running windows 7 pro and VS 2010.  The condor service runs as the local system account, but the child processes that do the actual builds run as the local machine user condor_usr1.

When trying to compile an excel addin, the build process will always fail under normal circumstances, but will always succeed when any user (condor_usr1 or domain user) is logged into the machine, either through remote desktop or through vsphere console. The error is below

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(264,9): error MSB3482: An error occurred while signing: The system cannot find the file specified.
------ Starting pre-build validation for project 'ExcelMSI' ------ 
ERROR: Unable to find source file 'D:\path\to\proj\bin\ExcelAddIn.vsto' for file 'ExcelAddIn.vsto', located in '[TARGETDIR]\bin', the file may be absent or locked.

I have installed the private key .pfx into every certificate store available (personal, trusted root CA, etc, except for untrusted/revoked), both for condor_usr1 and for the local system account (using the psexec trick described here http://blogg.sigma.se/en/Development/Mario-Sannum/Dates/2015/2/Fixing-ClickOnce-certificate-signing-for-TeamCity/) and still receive this error.

the key was created using makecert and pvk2pfx
https://msdn.microsoft.com/en-us/library/ff699202.aspx

How can I get the build to succeed without having a user logged in?
Why would the build be affected by whether a user is logged in or not?

解决方案

Hi,

>>ERROR: Unable to find source file 'D:\path\to\proj\bin\ExcelAddIn.vsto' for file 'ExcelAddIn.vsto', located in '[TARGETDIR]\bin', the file may be absent or locked.<<

Please make sue the file exits in the target folder. Can you reproduce the issue when build the solution in Visual studio directly?

If yes, it seem the issue is relative to HTCondor which require the specific permission. I suggest that you get Official support from HTCondor.

Hope it is helpful.

Regards & Fei


这篇关于除非用户登录,否则VS无法签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆