Exception with Resolving assemblies: Attempt to load an unverifiable executable with fixups

前端 未结 2 2040
不思量自难忘°
不思量自难忘° 2021-01-04 00:35

I\'m embedding required assemblies to my project and resolving them on runtime with AppDomain.CurrentDomain.AssemblyResolve event.

All works okay except

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-04 01:01

    Just in case anyone else is having my version of this problem, here's how I fixed it:

    • Create a new project with a different name
    • Copy all of your files into the new project (including code)
    • Add references to all the files necessary to compile without errors

    I really must have messed something up with my references/resources. I was getting this error when trying to load any external .dll from my program.

提交回复
热议问题