Unity Container does not work with Strongly Types Assemblies

1

I am trying to register a type using Unity :

  Container.RegisterType<ICommonInterfaceType, MyTypedClass>("Name001");

Here MyTypedClass is inside an assembly which signed with a snk. So when I try to resolved, getting this error:

Additional information: Could not load file or assembly 'NM.Common.Interface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

If I removed Sign the assembly option , it works. But is there any way , Unity be able to resolve the strongly signed assemblies.

c#
.net
dependency-injection
unity-container
.net-assembly
asked on Stack Overflow Mar 16, 2017 by Simsons • edited Mar 16, 2017 by Simsons

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0