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

System.Drawing.Common #103

Open theelicht opened 1 year ago

theelicht commented 1 year ago

This issue is similar to the resolved issue #99. From what I've seen the problem with loading the System.Drawing.Common in .net 6.0 seems to be caused by the Base project at line 52: https://github.com/xarial/xcad/blob/dev/src/Base/Base.csproj#L52

It's defined here that .net 6.0 should use version 7.0.0 of this dependency, but the installation of .net 6.0 only supports up to 6.0.0. The problem might be fixed by having a separate package reference for .net 6.0. I feel like a similar issue would also occur for .NET Standard 2.1, but I don't know what dependency to use for that since I haven't tested it.