extensions: net462 test projects failing to run because they're strongly named.

net462 projects are not running on my machines because the test assemblies are strongly named:

[xUnit.net 00:00:02.04]   Starting:    Microsoft.Extensions.AI.Tests (parallel test collections = on [12 threads], stop on fail = off)
[xUnit.net 00:00:03.20] Microsoft.Extensions.AI.Tests: Catastrophic failure: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.AI.Tests, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
File name: 'Microsoft.Extensions.AI.Tests, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at Xunit.Sdk.ReflectionAssemblyInfo..ctor(String assemblyFileName) in /_/src/xunit.execution/Sdk/Reflection/ReflectionAssemblyInfo.cs:line 33   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (25 by maintainers)

Most upvoted comments

This has been opened for a while; however, I am not sure what exactly the ask here. The issue appears to be caused by environmental configurations on a developer workstation.