Signing with PFX file using CSC



Hi all,

I've got a Visual Studio project which compiles just fine within
Visual Studio, but I'm unable to compile it with CSC with the same PFX
file as in the project. Is there some way to get the actual string VS
executes? Is some other parameter necessary for PFX files as opposed
to SNK files? I can't find anything but dead-end forum threads on this

Visual studio settings:
* "Sign the assembly" is ticked
* "assembly key.pfx" is selected
* "Delay sign only" is unticked

Shell output:
%windir%\Microsoft.NET\Framework64\v2.0.50727\csc.exe /reference:"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\Microsoft.SharePoint.dll" /target:library /keyfile:"assembly key.pfx" "SiteDefaults.cs"

Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42

for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727

Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

error CS1548: Cryptographic failure while signing assembly '[...]
\SiteDefaults.dll' -- 'Bad
Version of provider. '


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question