Skip to content

Add net472 compression reference for packaging tests in legacy Windows build - #2105

Draft
mikeebowen with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-actions-job
Draft

mikeebowen with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-actions-job

Conversation

Copilot AI commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

The Build and Test (debug, net35, windows-latest) Actions job was failing in the legacy project-load matrix because DocumentFormat.OpenXml.Packaging.Tests compiled as net472 there and no longer resolved System.IO.Compression types used by ZipArchive.

  • CI failure root cause

    • The net35/Windows build path maps test projects to net472.
    • OpenXmlPackageTests uses ZipArchive APIs, but the test project did not explicitly reference System.IO.Compression for net472.
  • Project fix

    • Add a framework-specific assembly reference in DocumentFormat.OpenXml.Packaging.Tests.csproj.
    • Scope the change to net472 only so other target frameworks remain untouched.
  • Resulting behavior

    • Restores compilation for the legacy Windows build matrix without changing test code or product code.
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">
  <Reference Include="System.IO.Compression" />
</ItemGroup>

Co-authored-by: mikeebowen <10384982+mikeebowen@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job Build and Test (debug, net35, windows-latest) Add net472 compression reference for packaging tests in legacy Windows build Jun 23, 2026
Copilot AI requested a review from mikeebowen June 23, 2026 17:19

This branch has not been deployed

No deployments
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.

2 participants