Excel-DNA / Excel-DNA/ExcelDna

System.Drawing.Common and LogDisplay load errors

Open
#566 17 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.