Plug-In Icon does not appear in Options --> Plug-Ins

Hi,

I have specified a Icon Resource pointing to a .ico file that contains the icon in all required sizes. VisualStudio shows the icon when I move the mouse pointer on it.

Nevertheless, the icon does not appear in the Rhino Options list of plug-ins.
image

What could be wrong?

Samuel

Hi,

I managed to solve the issue:
image

I compared the .csproj file of my project with the .csproj file of SampleCsCommands and I have found that my .csproj file was a bit strange. It contained:

  <ItemGroup>
    <EmbeddedResource Include="EmbeddedResources\plugin-utility.ico" />
  </ItemGroup>
[…]
  <ItemGroup>
    <None Include="EmbeddedResources\MFisWireIcon.ico" />
    <Content Include="EmbeddedResources\MFisWireIcon20200818.ico" />
  </ItemGroup>

I deleted the above entries and replaced it with:

  <ItemGroup>
    <EmbeddedResource Include="EmbeddedResources\MFisWire.ico" />
  </ItemGroup>

And of course in AssemblyInfo.cs:

 [assembly: PlugInDescription(DescriptionType.Icon, "MFisWire.EmbeddedResources.MFisWire.ico")]

I don’t know why my .csproj file was corrupted. However a text editer helped cleaning it up.

Samuel

1 Like