recompiling and running - Strong name validation failed.

Mar 27, 2009 at 5:57 PM
Hi all,
I've recompiled the main solution and replaced the files in the msi installer path (C:\Program Files (x86)\MSBuild\ExtensionPack\) but am getting msbuild errors when trying to run .proj files that used to work. Basically, I wanted to test out adding a class (copy/paste of SqlCmd) AsCmd to try out the same thing for Analysis Services. This is bound to be a stupid noob signing error (I've done lots of c#, but no signing...) - can someone help me out? If things go ok I'll submit the AsCmd I come up with. If I get really ambitious I'll convert the class to use the actual ascmd.cs code in the Analysis Services Samples without passing via the CL.

"C:\Program Files (x86)\MSBuild\ExtensionPack\Samples\
j" (default target) (1) ->
(Default target) ->
  C:\Program Files (x86)\MSBuild\ExtensionPack\Samples\
oj(52,5): error MSB4062: The "MSBuild.ExtensionPack.SqlServer.SqlCmd" task coul
d not be loaded from the assembly C:\Program Files (x86)\MSBuild\ExtensionPack\
MSBuild.ExtensionPack.dll. Could not load file or assembly 'MSBuild.ExtensionPa
ck, Version=, Culture=neutral, PublicKeyToken=10d297e8e737fe34' or one o
f its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8
013141A) Confirm that the <UsingTask> declaration is correct, and that the asse
mbly and all its dependencies are available.

Mar 27, 2009 at 6:26 PM
The assemblies are delay signed . You need to run sn.exe -Vr *,10d297e8e737fe34 from a .net command prompt.

Mar 30, 2009 at 8:33 AM
Thanks for that, worked great.