I've just installed and configured TeamCity and it seems great, yet I'm unable to build my project. It fails with the following MSBuild error:
error MSB3321: Importing key file ".pfx" was canceled
The .pfx file is a strong-name key pair that requires a password. It was generated in the Visual Studio Signing tab and it's used to sign all of our project's assemblies.
My research indicates that the error is a result of running MSBuild without specifying a password for the .pfx file. When built in Visual Studio it prompts me for the password once and then apparently exports it to the machine's RSA crypto store so that I never have to enter it again.
Is there any way to get this working on our build server so that either TeamCity or MSBuild will retrieve the password from an RSA key container automatically like it does on my development machine?
I've already looked into using aspnet_regiis but the import switch seems to apply only to XML files, not .pfx files (although I didn't actually try). Do I have to create a new key container using aspnet_regiis and then somehow generate another .pfx using the sn.exe tool?
Any help is appreciated :)
Edited by: Dave on Sep 30, 2008 3:14 AM