Skip to content

deps: Add explicit Microsoft.Extensions.Logging reference#35

Merged
Jed556 merged 1 commit into
mainfrom
seer/fix/missing-logging-dependency
Jun 26, 2026
Merged

deps: Add explicit Microsoft.Extensions.Logging reference#35
Jed556 merged 1 commit into
mainfrom
seer/fix/missing-logging-dependency

Conversation

@sentry

@sentry sentry Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

The application was encountering a System.IO.FileNotFoundException for Microsoft.Extensions.Logging, Version=10.0.0.0 during startup, specifically when initializing the Entity Framework Core PlayerContext. This was due to a known issue where transitive NuGet dependencies from project references are not always copied to the build output directory in WPF projects.

Microsoft.Extensions.Logging is a transitive dependency of Entity Framework Core, which is referenced by AutoMidiPlayer.Data. Although AutoMidiPlayer.Data correctly references it, AutoMidiPlayer.WPF did not have a direct reference. This caused MSBuild to omit Microsoft.Extensions.Logging.dll from the final publish output for the WPF project.

To resolve this, an explicit PackageReference for Microsoft.Extensions.Logging (version 10.0.5) has been added to both AutoMidiPlayer.Data.csproj and AutoMidiPlayer.WPF.csproj. This forces MSBuild to include the necessary DLL in the build output, ensuring the application can find and load the assembly at runtime.

Fixes AUTOMIDIPLAYER-P

@Jed556 Jed556 merged commit 8e7c6e6 into main Jun 26, 2026
7 checks passed
@Jed556 Jed556 deleted the seer/fix/missing-logging-dependency branch June 26, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant