Skip to content

fix(deps): restore BudgetMe package build - #2

Merged
deaneeth merged 1 commit into
mainfrom
codex/fix-package-restore-issue-1
Jul 2, 2026
Merged

fix(deps): restore BudgetMe package build#2
deaneeth merged 1 commit into
mainfrom
codex/fix-package-restore-issue-1

Conversation

@deaneeth

@deaneeth deaneeth commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the restore/build failure reported in #1 by removing stale dependency references that the application does not use.

Changes Made

  • Removed unused MySql.Data and its transitive package chain from BudgetMe.csproj and packages.config.
  • Removed stale MySql.Data.MySqlClient and Org.BouncyCastle.Utilities imports from WinForms source files.
  • Kept the actual UI control dependencies required by the designers: CircularProgressBar and WinFormAnimation.
  • Removed obsolete binding redirects for packages that are no longer referenced.
  • Removed missing LocalDB .mdf/.ldf content items from the project file, matching the README statement that database files are not committed.

Why This Change

The app uses System.Data.SqlClient against SQL Server LocalDB, not MySQL. Keeping MySql.Data 9.0.0 in a .NET Framework 4.7.2 packages.config project pulled in unnecessary dependency baggage and made restore fragile. Once restore failed, CircularProgressBar was not available to the designer compile, producing the missing namespace errors from the issue.

The project also referenced LocalDB database files that are intentionally absent from the repository, which blocked a clean build after package restore was fixed.

Closes #1.

Testing

  • nuget restore BudgetMe.sln -Verbosity detailed
  • MSBuild.exe BudgetMe.sln /t:Rebuild /p:Configuration=Debug /p:Platform="Any CPU" /p:FrameworkPathOverride="E:\Projects\_codex_nuget_cache\Microsoft.NETFramework.ReferenceAssemblies.net472\build\.NETFramework\v4.7.2" /v:minimal /nologo
  • Verified clean restore installs only CircularProgressBar.2.8.0.16 and WinFormAnimation.1.6.0.4.

Notes

Verification redirected temp paths to E: and used Microsoft.NETFramework.ReferenceAssemblies.net472 for local compile verification. A normal Visual Studio setup with the 4.7.2 developer pack should not need that override.

Remove the unused MySql.Data dependency chain and stale imports from the WinForms project because the app only uses System.Data.SqlClient for LocalDB access.

Keep only the packages required by the designer controls, remove obsolete binding redirects, and stop the project from copying LocalDB database files that are intentionally not committed.

This lets NuGet restore CircularProgressBar and WinFormAnimation cleanly and allows the Debug build to complete from a clean checkout.
@deaneeth deaneeth added bug Something isn't working dependencies Dependency restore, package, or compatibility work labels Jul 2, 2026
@deaneeth deaneeth self-assigned this Jul 2, 2026
@deaneeth
deaneeth marked this pull request as ready for review July 2, 2026 18:33
Copilot AI review requested due to automatic review settings July 2, 2026 18:33
@deaneeth
deaneeth merged commit e304233 into main Jul 2, 2026
1 check passed
@deaneeth
deaneeth deleted the codex/fix-package-restore-issue-1 branch July 2, 2026 18:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request restores reliable NuGet restore and solution build for the BudgetMe WinForms (.NET Framework 4.7.2) project by removing unused/stale dependency references (MySQL + transitive chain) and related dead code/config entries that were causing restore/build/designer failures.

Changes:

  • Removed MySql.Data (and related transitive package references) from packages.config and assembly references from BudgetMe.csproj.
  • Removed stale using MySql.Data.MySqlClient; / Org.BouncyCastle.Utilities imports from several WinForms source files.
  • Removed obsolete binding redirects and deleted .mdf/.ldf “Content” items from the project file to avoid build breaks due to missing, intentionally-untracked database files.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
BudgetMe/Transact.cs Removes unused MySQL client import to align code with SQL Server LocalDB usage.
BudgetMe/packages.config Drops unused packages; keeps only designer-required UI packages.
BudgetMe/Form1.cs Removes unused MySQL client import.
BudgetMe/DebtTransact.cs Removes unused MySQL client import (SQL Client remains).
BudgetMe/DailyTracker.cs Removes unused MySQL client import.
BudgetMe/BudgetMe.csproj Removes stale assembly references and missing LocalDB content items; retains required UI control references.
BudgetMe/App.config Removes obsolete binding redirects (project has no remaining dependency needing them).
BudgetMe/AllDash.cs Removes unused MySQL and BouncyCastle imports.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Dependency restore, package, or compatibility work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore of Git packages

2 participants