title: Team Foundation Server Build with password protected codesigning fails
body: <p>I'm trying to setup a continuous integration build on TFS 2008. In the project I want to build I use a key for signing. This key uses a password. I can't get it to build, because during the build TFS wants to show a dialog which can't be shown. I think I need to build the project by hand on the server, but only the TFS explorer and build parts are installed on the server. Any suggestions on how to get my project to build properly?</p>
  
  <p>This is the error given by TFS:</p>
  
  <blockquote>
    <p>C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1805,7):
    error MSB4018: The "ResolveKeySource"
    task failed unexpectedly.
    System.InvalidOperationException:
    Showing a modal dialog box or form
    when the application is not running in
    UserInteractive mode is not a valid
    operation. Specify the
    ServiceNotification or
    DefaultDesktopOnly style to display a
    notification from a service
    application.    at
    System.Windows.Forms.Form.ShowDialog(IWin32Window
    owner)    at
    System.Windows.Forms.Form.ShowDialog()
    at
    Microsoft.Build.Tasks.ResolveKeySource.ResolveAssemblyKey()
    at
    Microsoft.Build.Tasks.ResolveKeySource.Execute()</p>
  </blockquote>