Why am I getting 'Assembly '*.dll' must be strong signed in order to be marked as a prerequisite.'?

后端 未结 27 633
隐瞒了意图╮
隐瞒了意图╮ 2021-01-29 20:28

I\'m trying to compile my excel addin using C# 4.0, and started to get this problem when building my project in Visual Studio. It\'s important to tell you that I haven\'t had th

相关标签:
27条回答
  • 2021-01-29 20:54

    Unloading and reloading the problem project solved it for me.

    0 讨论(0)
  • 2021-01-29 20:54

    Try with update-package -reinstall -ignoredependencies

    0 讨论(0)
  • 2021-01-29 20:55

    I've had this problem. It happened because i had many projects pointing to the same assembly but from different versions. I solve it selecting the same version to all projects in my solution.

    0 讨论(0)
  • 2021-01-29 20:55

    If its a mismatch of a dependencies dependencies, go to the NuGet package manager at the solution level and check the Update and Consolidate tabs, harmonise it all.

    0 讨论(0)
  • 2021-01-29 20:56

    If you have changed your assembly version or copied a different version of the managed library stated in the error you may also have previously compiled files referencing the wrong version. A 'Rebuild All' (or deleting you 'bin and 'obj' folders as mentioned in an earlier comment) should fix this case.

    0 讨论(0)
  • 2021-01-29 20:57

    I went to publish, application files, found the dll throwing the error changed it to 'Include' from 'Include (Auto)'. I can now publish.

    0 讨论(0)
提交回复
热议问题