简体   繁体   English

尝试使用Inedo BuildMaster进行构建的.Net解决方案

[英].Net solution trying to build using Inedo BuildMaster

When i try to execute my workfolw in BuildMaster, it's throwing me the following errors. 当我尝试在BuildMaster中执行我的工作流时,会引发以下错误。 It seems like there is a PFX certificate issue. 似乎存在PFX证书问题。 When i run the same solution in Visual Studio, It's working fine without any issues. 当我在Visual Studio中运行相同的解决方案时,它工作正常,没有任何问题。 It is an existing application, built with PFX Certificate and password protected. 它是现有应用程序,带有PFX证书和受密码保护。

Can you please help me out in fixing that. 您能帮我解决这个问题吗?

ERROR: C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Microsoft.Common.targets(2482,5): error MSB3326: Cannot import the following key file: . 错误:C:\\ Windows \\ Microsoft.NET \\ Framework64 \\ v4.0.30319 \\ Microsoft.Common.targets(2482,5):错误MSB3326:无法导入以下密钥文件:。 The key file may be password protected. 密钥文件可能受密码保护。 To correct this, try to import the certificate again or import the certificate manually into the current user's personal certificate store.ERROR: C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Microsoft.Common.targets(2482,5): error MSB3321: Importing key file "ppmillinous.pfx" was canceled. 若要更正此问题,请尝试再次导入证书或将证书手动导入当前用户的个人证书存储中。错误:C:\\ Windows \\ Microsoft.NET \\ Framework64 \\ v4.0.30319 \\ Microsoft.Common.targets(2482,5) :错误MSB3321:导入密钥文件“ ppmillinous.pfx”被取消。 INFO: Done building project "wa5invqz.tmp_proj" -- FAILED. 信息:完成的建筑项目“ wa5invqz.tmp_proj”-失败。 INFO: Done building project "POWERPitch.csproj" -- FAILED. 信息:完成的建筑项目“ POWERPitch.csproj”-失败。 INFO: Done building project "POWERPitch.sln" -- FAILED.ERROR: Build failed (msbuild returned 1). 信息:完成构建项目“ POWERPitch.sln”-FAILED.ERROR:构建失败(msbuild返回1)。

I'd suggest doing the following: 我建议您执行以下操作:

1) Create a pfx file that is password protected 1)创建一个受密码保护的pfx文件

2) Either import the password protected cert again or import the password protected cert to the current user's personal certificate store. 2)再次导入受密码保护的证书或将受密码保护的证书导入当前用户的个人证书存储。

Note that if the pfx file you're using is already password protected, you can skip the first step. 请注意,如果您使用的pfx文件已经受到密码保护,则可以跳过第一步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM