Strongly naming a 3rd party assembly - Could not load file or assembly

前端 未结 3 1741
野趣味
野趣味 2021-02-05 15:38

I am writing a Visual Studio 2012 extension, for internal use, which requires that all assemblies have a strong name. I am dependent on RestSharp (and a few other dlls), and si

3条回答
  •  孤独总比滥情好
    2021-02-05 16:21

    A few things you can check:

    It seems you project refrence is still to the unsigned dll .\RestSharp.dll. You should compile your project against the signed .\Signed\RestSharp.dll dll. Remove the current refrences and add the again.

    Also check the dll in the bin directory of your project. It's possible the old RestSharp.dll is still there. Remove it and check all build directories.

    You can also check if the restsharp.dll is in you GAC. If so remove the dll from your gac.

提交回复
热议问题