Error: "Key pair does not match public key from assembly", How to Generate PostSharp-Private.snk Key

Questions about integration in Visual Studio, MSBuild or other IDEs or build tools.

Error: "Key pair does not match public key from assembly", How to Generate PostSharp-Private.snk Key

Postby burgo on Wed Jun 27, 2007 10:32 pm


Hi community,
I have a problem with compile PostSharp build, when msbuild try assign assemblies the follow message is throw:
this message throwed because the file PostSharp-Private.snk not found, I already generate this file with "sn.exe -k PostSharp-Private.snk" but other message is throwed: "Key pair does not match public key from assembly"
---------------------------------------------------------------------------------

   Ignorando destino "CoreCompile" porque todos os arquivos de sa¡da estÆo atualizados em rela?Æo aos arquivos de entrada.
    Destino CopyFilesToOutputDirectory:
        PostSharp.Installer -> D:\Importantes\Desenvolvimento\PostSharp\Distribution\PostSharp.Installer\bin\Debug\PostSharp.Installer.exe
Destino Sign:
    "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\sn.exe" -Ra "..\Core\PostSharp.Core\bin\Debug\PostSharp.Core.dll" ..\Private\Content\PostSharp-Private.snk
   
    Microsoft (R) .NET Framework Strong Name Utility  Version 2.0.50727.42
    Copyright (c) Microsoft Corporation.  All rights reserved.
   
    Failed to read ..\Private\Content\PostSharp-Private.snk -- O sistema nÆo pode encontrar o caminho especificado.
    D:\Importantes\Desenvolvimento\PostSharp\Distribution\Distribution.proj(183,3): error MSB3073: O comando ""C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\sn.exe" -Ra "..\Core\PostSharp.Core\bin\Debug\PostSharp.Core.dll" ..\Private\Content\PostSharp-Private.snk" concluiu com o c¢digo 1.
Destino de compila?Æo pronto "Sign" no projeto "Distribution.proj" -- FALHA.

Projeto de compila?Æo pronto "Distribution.proj" -- FALHA.
FALHA da compila?Æo.
D:\Importantes\Desenvolvimento\PostSharp\Build\Versioning.targets : warning : The source code has been modified since it has been committed to source control.
D:\Importantes\Desenvolvimento\PostSharp\Distribution\Distribution.proj(183,3): error MSB3073: O comando ""C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\sn.exe" -Ra "..\Core\PostSharp.Core\bin\Debug\PostSharp.Core.dll" ..\Private\Content\PostSharp-Private.snk" concluiu com o c¢digo 1.
    1 Aviso(s)
    1 erro(s)

Tempo Decorrido 00:00:02.41
Thiago Burgo Belo
burgo
 
Posts: 7
Joined: Sat Jan 12, 2008 4:55 pm
Full Name: Thiago Burgo Belo

Re: Error:

Postby gfraiteur on Mon Jan 14, 2008 10:59 pm

Hi Thiago,

Sorry if I did not answer before. I skipped your post. Did you find an answer?

Gael
Gael Fraiteur, project leader
got good support? consider donating to the project.
gfraiteur
Site Admin
 
Posts: 694
Joined: Tue Dec 18, 2007 3:09 pm
Full Name: Gael Fraiteur
Company: postsharp.org


Return to Integration with IDE and Build Scripts


cron