Build/Test Issues

Issues With Signed Assemblies

Started by Sohnee on 9,288 views

Hi,

I have encountered an issue running NCrunch on signed assemblies. I get the following error:

c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1558): The KeyContainer path 'VS_KEY_84FCC2509FDD8EE0' is invalid. KeyContainer must point to an existing file.

I have encountered this problem in the past and have solved it either by creating a dummy file with the correct name or by registering the key using:

"C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn" -i C:\Source\AssemblyName\AssemblyName.pfx VS_KEY_84FCC2509FDD8EE0

I have done both of these steps but still get the error.

If anyone has any suggestions I would really appreciate it.

Thanks
SOLUTION

The issue here is that the files aren't copied to the NCrunch build location if they aren't included in the project - so by including the dummy files in the project they get pulled over to the NCrunch build location and this issue is then fixed.
Good find. Sometimes when files get copied the build output can throw some fairly obscure errors. It's often worth right clicking on the failed build in the tests view and browsing through the workspace to ensure it contains all the files needed for your build.

Post a reply

Log in to reply.