Skip to content

Remove obsolete .NET 5.0 references from bundle tests - #121821

Merged
jkotas merged 3 commits into
mainfrom
copilot/remove-tests-for-5-0
Nov 20, 2025
Merged

jkotas merged 3 commits into
mainfrom
copilot/remove-tests-for-5-0

Conversation

Copilot AI commented Nov 19, 2025 •

Copy link
Copy Markdown
Contributor

.NET 5.0 has been out of support for years. Several test methods in the bundle tests explicitly targeted version 5.0 and should be removed.

cc @dotnet/appmodel @AaronRobinsonMSFT

Changes

  • Removed SelfContained_Targeting50 test method from BundledAppWithSubDirs
  • Removed FrameworkDependent_Targeting50 test method from BundledAppWithSubDirs
  • Removed new Version(5, 0) parameter from SigningTests.OverwritingExistingBundleClearsMacOsSignatureCache when rebundling the app

The remaining tests provide equivalent coverage without version-specific targeting to obsolete versions.

Original prompt

We have some tests in BundledAppWithSubDirs that explicitly target 5.0. This has been out of support for some time now. We should remove those tests.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Remove tests targeting deprecated version 5.0 Remove obsolete .NET 5.0 tests from BundledAppWithSubDirs Nov 19, 2025
Copilot AI requested a review from elinor-fung November 19, 2025 21:56
@elinor-fung

Copy link
Copy Markdown
Member

@copilot also remove passing new Version(5.0) in SigningTests.OverwritingExistingBundleClearsMacOsSignatureCache when rebundling the app.

Copilot AI commented Nov 20, 2025

Copy link
Copy Markdown
Contributor Author

@copilot also remove passing new Version(5.0) in SigningTests.OverwritingExistingBundleClearsMacOsSignatureCache when rebundling the app.

Done. Removed new Version(5, 0) from the Rebundle call in commit f7e615b.

Copilot AI changed the title Remove obsolete .NET 5.0 tests from BundledAppWithSubDirs Remove obsolete .NET 5.0 references from bundle tests Nov 20, 2025
@elinor-fung
elinor-fung marked this pull request as ready for review November 20, 2025 00:25
Copilot AI review requested due to automatic review settings November 20, 2025 00:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes obsolete .NET 5.0 references from bundle tests, as .NET 5.0 has been out of support for several years. The changes eliminate version-specific test methods and an unnecessary version parameter that explicitly targeted 5.0.

  • Removed two test methods (SelfContained_Targeting50 and FrameworkDependent_Targeting50) that explicitly targeted .NET 5.0
  • Removed the new Version(5, 0) parameter from a rebundle operation in signing tests
  • Existing tests provide equivalent coverage without targeting obsolete versions

Reviewed Changes

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

File Description
src/installer/tests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs Removed two test methods that explicitly targeted .NET 5.0, as the existing SelfContained and FrameworkDependent tests provide equivalent coverage
src/installer/tests/Microsoft.NET.HostModel.Tests/MachObjectSigning/SigningTests.cs Removed obsolete version 5.0 parameter from rebundle call, allowing it to use the default/current version

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

@jkotas
jkotas merged commit 5bdb38b into main Nov 20, 2025
@jkotas
jkotas deleted the copilot/remove-tests-for-5-0 branch November 20, 2025 05:20
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants