This is an automated email from the ASF dual-hosted git repository.
FreeAndNil pushed a change to branch Feature/306-aot-calling-assembly
in repository https://gitbox.apache.org/repos/asf/logging-log4net.git
from 364e0ee4 enforce IDE0005 on build and remove unnecessary usings (#306)
add 1920bb96 test what works under Native AOT (#306) Add
log4net.Tests.Aot, which runs the same probes JIT compiled and published with
PublishAot and fails when either run differs from the expected list, and run it
from CI. Guard the trimmer annotations with unit tests, and fix the two IL3000
warnings a consumer sees by handling the empty Assembly.Location a single file
application returns.
No new revisions were added by this update.
Summary of changes:
.github/workflows/build.yaml | 18 +-
.gitignore | 3 +
.../App.config} | 21 +-
.../Probe.cs} | 22 +-
src/log4net.Tests.Aot/Probes.cs | 245 +++++++++++++++++++++
src/log4net.Tests.Aot/Program.cs | 141 ++++++++++++
src/log4net.Tests.Aot/log4net.Tests.Aot.csproj | 24 ++
src/log4net.Tests/Util/AotCompatibilityTest.cs | 169 ++++++++++++++
src/log4net.sln | 6 +
.../UnconditionalSuppressMessageAttribute.cs | 71 ++++++
src/log4net/Util/SystemInfo.cs | 30 ++-
11 files changed, 728 insertions(+), 22 deletions(-)
copy src/{site/antora/modules/ROOT/pages/release-notes.adoc =>
log4net.Tests.Aot/App.config} (62%)
copy src/{log4net/Util/ContextPropertiesBase.cs => log4net.Tests.Aot/Probe.cs}
(64%)
create mode 100644 src/log4net.Tests.Aot/Probes.cs
create mode 100644 src/log4net.Tests.Aot/Program.cs
create mode 100644 src/log4net.Tests.Aot/log4net.Tests.Aot.csproj
create mode 100644 src/log4net.Tests/Util/AotCompatibilityTest.cs
create mode 100644
src/log4net/Diagnostics/CodeAnalysis/UnconditionalSuppressMessageAttribute.cs