visual studio 2013 - VSTO Click-Once Certificate breaks TFS 2015 build -


i develop excel 2010 addin. therefor have click-once installer corresponding certificate. works fine on machine have build on tfs 2015.

when ever signing switch on, messages telling me:

[error]c:\program files (x86)\msbuild\12.0\bin\microsoft.common.currentversion.targets(2718,5): error msb3326: cannot import following key file: . key file may password protected. correct this, try import certificate again or import certificate manually current user's personal certificate store.

c:\program files (x86)\msbuild\12.0\bin\microsoft.common.currentversion.targets(2718,5): error msb3326: cannot import following key file: . key file may password protected. correct this, try import certificate again or import certificate manually current user's personal certificate store.

[error]c:\program files (x86)\msbuild\12.0\bin\microsoft.common.currentversion.targets(2718,5): error msb3321: importing key file "my cert.pfx" canceled.

if have switched off, message:

"c:\program files (x86)\msbuild\microsoft\visualstudio\v12.0\officetools\microsoft.visualstudio.tools.office.targets(159,9): error : cannot build because clickonce manifest signing option not selected. select option, open project property pages, click signing tab, , select "sign clickonce manifests.""

in both ways build breaks , don't understand why. deleted certificate , removed every bit of information signing cproj file, without success.

i have build without signing. how can achive thise?

i had vsto outlook add-in working tfs online fine until renamed add-in project , started experience same build errors today.

following steps helped me:

  1. untick “sign clickonce manifests” , “sign assembly” options.
  2. delete pfx files project.
  3. remove manifest related tags csproj.
  4. “create test certificate” without entering password boxes , choosing sha256rsa algorithm.
  5. remove “*.pfx” files .gitignore (i use git source control).
  6. tick “sign clickonce manifests” option.
  7. check-in changes new “…_temporarykey.pfx” file.

now following warning in tfs build logs, @ least build doesn’t fail anymore :-)

“warning msb3327: unable find code signing certificate in current user's windows certificate store. correct this, either disable signing of clickonce manifest or install certificate certificate store.”

i hope too!


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -