Could not load file or assembly 'Microsoft.Practices.Unity'

前端 未结 7 1634
半阙折子戏
半阙折子戏 2021-02-12 23:58

I am trying to upgrade Unity to version (2.1.505.2), but when I run the application I get the following FileLoadException

Could

7条回答
  •  忘掉有多难
    2021-02-13 00:47

    The problem was another Microsoft dll that refers to the old version of unity. I found this out be accident be checking the namespaces of every referenced dll, and found another dll that contained namespaces with "unity".

    Updating:

    • Microsoft.Practices.EnterpriseLibrary.Common
    • Microsoft.Practices.EnterpriseLibrary.Validation

    to latest released versions resolved the problem.

    I hope I save the day for some lost soul out there who's also pulling his hair out over this issue... :)

提交回复
热议问题