xarial / xcad

Framework for developing CAD applications for SOLIDWORKS, including add-ins, stand-alone applications, macro features, property manager pages, etc.
https://xcad.net
MIT License
126 stars 25 forks source link

In.NET 7, the Icon property #124

Closed gaesar1 closed 4 months ago

gaesar1 commented 4 months ago

In.NET7, the Icon property does not accept a type and a resource name as parameters.like"[Icon(typeof(Resources), nameof(Resources.command1))] "Will report an error. How to solve this problem?

gaesar1 commented 4 months ago

use the Properties.Resources