Excel-DNA / Excel-DNA/ExcelDna
System.Drawing.Common and LogDisplay load errors
Open
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 292
- Avg merge
- 20d 12h
- Merged PRs (30d)
- 1
Description
Under .NET 6 add-ins, the LogDisplay may fail to load with an error complaining about a set_Font method not found.
This relates to a newer version of the assembly System.Drawing.Common being present in the output directory.
There is a deep .NET 6 mess related to this file, and why it might be present after referencing some packages.
See for example https://github.com/dotnet/runtime/issues/64592
If using the System.Configuration.ConfigurationManager it might help to reference version 6.0.0 instead of 6.0.1.
Otherwise, the file can be explicitly deleted in the build:
```
```
Is this safe? Presumably not always.
Contributor guide
Assessment
This issue has not been assessed yet.