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

后端 未结 27 955
隐瞒了意图╮
隐瞒了意图╮ 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条回答
  •  Happy的楠姐
    2021-01-29 20:49

    Now Here is a different approach to the problem:

    • Right click on the project and select the 'Unload Project' option. You will notice you project becomes unavailable.

    • Right click on the unavailable project and select the 'Edit' option.

    • Scroll down to the ' < ItemGroup > ' tag that contains all the resource tags.

    • Now go to the reference that has been displayed on the error list, you will notice it it uses a single tag (i.e. < Reference Include="assemble_name_here, Version=0.0.0.0, Culture=neutral" / >).

    • Change that to look as follows:

    .

    
        < Private > True < / Private >
        < HintPath > path_here\assemble_name_here.dll < / HintPath >
    < / Reference >
    
    • Save your changes, Right click on the unavailable project again and click on the 'Reload Project' option, then build.

提交回复
热议问题