Hi,
I Get this error when trying to build a project using Team Build (MSBuild) on TFS 2010
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1970):
Cannot import the following key file: CCC.pfx.
The key file may be password protected.
To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the following key container name: VS_KEY_C00C673BBB353901
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1970):
Importing key file "CCC.pfx" was canceled.
It all builds OK in VS 2010. The assembly is signed with a pfx file, usually in Visual Studio we are prompted for the password the first time we build but then never again...
I've tried running sn -i companyname.pfx VS_KEY_3E185446540E7F7A as other replies as suggested here http://stackoverflow.com/questions/2815366/cannot-import-the-following-keyfile-blah-pfx-the-keyfile-may-be-password-prote
I've tried importing into the personal certicificate store as suggested here http://stackoverflow.com/questions/885484/using-msbuild-to-sign-clickonce-or-assembly-error-msb3321
But all to no avail, still the same error.
Is someone out there is using Team Build to build an assembly that is signed?
How do I do it?
Do I have to somehow add the certificate to the windows account the build service runs under or something like that?
Alternatively how do I make the build done in TeamBuild not use signing? I just want to check it compiles and run the unit tests I don't need signing for that.
Thanks, Mike G