unitycontainer / registration-by-convention

Unity.RegistrationByConvention package (Requires Core Implementation. Any contributors?)
Apache License 2.0
4 stars 12 forks source link

WIP: Add another exception to ignore #11

Closed MatthewSteeples closed 5 years ago

MatthewSteeples commented 5 years ago

I'm still investigating which dll is causing this, but we're getting the following exception when initialising our UnityContainer using this code

System.Security.VerificationException: Operation could destabilize the runtime. at Unity.RegistrationByConvention.AllClasses.FromAssembliesInBasePath(Boolean includeSystemAssemblies, Boolean includeUnityAssemblies, Boolean skipOnError) in C:\projects\unity\RegistrationByConvention\src\AllClasses.Desktop.cs:line 48

MatthewSteeples commented 5 years ago

Please don't consider this for merging yet. The exception is being thrown in a different location to where I've added the catch (it's tricky to debug because we don't see this problem locally, only on VSTS Pipelines)